@dimforge/rapier3d-compat
Advanced tools
Changelog
0.9.0 (2022-10-07)
RigidBodyDesc.setAdditionalMass
method will now result in the additional angular inertia
being automatically computed based on the shapes of the colliders attached to the rigid-body.RigidBodyDesc.setAdditionalPrincipalAngularInertia
. Use
RigidBodyDesc.setAdditionalMassProperties
instead.RigidBodyDesc
and ColliderDesc
will now always copy the object provided by
the user instead of storing the object itself.ColliderDesc.setRotation
,
ColliderDesc.setMassProperties
, RigidBodyDesc.setRotation
, RigidBodyDesc.setAdditionalMassProperties
,
RigidBodyDesc.setAngvel
.RigidBody.restrictRotations
and RigidBody.restrictTranslations
to
RigidBody.setEnabledRotations
and RigidBody.setEnabledTranslations
.RigidBodyDesc.restrictRotations
and RigidBodyDesc.restrictTranslations
to
RigidBodyDesc.enabledRotations
and RigidBodyDesc.enabledTranslations
.ImpulseJoint.setContactsEnabled
, and MultibodyJoint.setContactsEnabled
to set whether
contacts are enabled between colliders attached to rigid-bodies linked by this joint.UnitImpulseJoint.setLimits
to set the limits of a unit joint.RigidBody.recomputeMassPropertiesFromColliders
to force the immediate computation
of a rigid-body’s mass properties (instead of waiting for them to be recomputed during the next
timestep). This is useful to be able to read immediately the result of a change of a rigid-body
additional mass-properties or a change of one of its collider’s mass-properties.RigidBody::setAdditionalMass
to set the additional mass for the rigid-body. The additional
angular inertia is automatically computed based on the attached colliders shapes. If this automatic
angular inertia computation isn’t desired, use RigidBody::setAdditionalMassProperties
instead.Collider.setDensity
, .setMass
, .setMassProperties
, to alter a collider’s mass
properties. Note that .setMass
will result in the collider’s angular inertia being automatically
computed based on this mass and on its shape.ColliderDesc.setMass
to set the mass of the collider instead of its density. Its angular
inertia tensor will be automatically computed based on this mass and its shape.EventHandler
trait has been modified to include
the method EventQueue.drainContactForceEvents
. Contact force events are generated whenever the sum of the
magnitudes of all the forces between two colliders is greater than any of their
Collider.contactForceEventThreshold
values (only the colliders with the ActiveEvents.CONTACT_FORCE_EVENT
flag set are taken into account for this threshold).