You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The objects already have a rotation factor and inertia. It would be nice to have linear factors as well in _applyTranslation from oimo.dynamics.rigidbody.RigidBody.
The text was updated successfully, but these errors were encountered:
moisesjpelaez
changed the title
Add angular friction to Shape and ShapeConfig
Add Linear Factor
May 5, 2024
Unfortunately mass is a scalar and not a matrix like inertia moment and handling anisotropicity directly in RigidBody is difficult (for isotropic linear factor you can just change mass).
If you want to limit linear movements for some axes, you can utilize GenericJoint by setting its TranslationalLimitMotor.
e.g. to lock the X-axis of a generic joint you can genericJoint.getTranslationalLimitMotors()[0].setLimits(0, 0).
The objects already have a rotation factor and inertia. It would be nice to have linear factors as well in
_applyTranslation
fromoimo.dynamics.rigidbody.RigidBody
.The text was updated successfully, but these errors were encountered: