Add mjs_attachToSite for attaching a body to a site.
PiperOrigin-RevId: 684432183 Change-Id: I7100bebfb6521f9dbfbb07f31490b2b9298bf18c
This commit is contained in:
committed by
Copybara-Service
parent
694bdebc19
commit
cdb167f275
@@ -587,6 +587,9 @@ class mjCSite : public mjCSite_, private mjsSite {
|
||||
|
||||
mjsSite spec; // variables set by user
|
||||
|
||||
// site's body
|
||||
mjCBody* Body() const { return body; }
|
||||
|
||||
// use strings from mjCBase rather than mjStrings from mjsSite
|
||||
using mjCBase::name;
|
||||
using mjCBase::info;
|
||||
|
||||
Reference in New Issue
Block a user