Accumulate inertial in mjs_bodyToFrame.
PiperOrigin-RevId: 765129145 Change-Id: Ib7caca42ef4272ebe762655eee9380dae471be7f
This commit is contained in:
committed by
Copybara-Service
parent
f72a175a2c
commit
7932b4b202
@@ -462,6 +462,10 @@ class mjCBody : public mjCBody_, private mjsBody {
|
||||
// getters
|
||||
std::vector<mjCBody*> Bodies() const { return bodies; }
|
||||
|
||||
// accumulate inertia of another body into this body, if `result` is not nullptr, the accumulated
|
||||
// inertia will be stored in `result`, otherwise the body's private spec will be used.
|
||||
void AccumulateInertia(const mjsBody* other, mjsBody* result = nullptr);
|
||||
|
||||
private:
|
||||
mjCBody(const mjCBody& other, mjCModel* _model); // copy constructor
|
||||
mjCBody& operator=(const mjCBody& other); // copy assignment
|
||||
|
||||
Reference in New Issue
Block a user