The Python bindings track the underlying Rust crates and share their
release cadence. The authoritative changelog is the Cargo
CHANGELOG.md at the root of the
Rapier repository.
Added
Multibody.generalized_position,armature/set_armature, and per-link motors in reduced coordinates:set_link_motor,set_link_motor_max_force,set_link_motor_model,link_motor.MultibodyLink.assembly_idandndofs: where a link's entries sit in the generalized vectors.- MJCF names:
body_names,joint_names,body_name_to_idxandjoint_name_to_idxonMjcfRobotandMjcfRobotHandles. - MJCF actuator parameters:
MjcfActuatorHandle.kind,joint_name,gear,ctrl_range,force_range,kp,kv.
Added
- Soft bodies:
PhysicsWorld.add_soft_body,SoftBodySet,SoftBodygenerators (rope,cloth,trimesh,volumetric…),SoftBodyBuilder,SoftBodyMaterial. - Soft-body tearing and cutting (
tear_soft_body,cut_soft_body), reported asSoftBodyTearEvent(EventHandler.handle_soft_body_tear_event). - Soft-body clusters (
add_soft_body_cluster) and deformable colliders (insert_deformable). - The FEM soft-body solver is always built in (
SoftBodySolver,SoftFemParameters). RigidBodyType.SOFT_FRAME,RigidBody.additional_pgs_iterations,IntegrationParameters.soft_bodies; snapshots include the soft bodies.PhysicsWorld.detect_collisions(),PhysicsWorld.quarantineandbuild_features().RigidBody.set_next_kinematic_*andallow_fast_rotation;Collider.*_wrt_parent.Collider.segment/polyline/voxelized_mesh(withFillMode), andto_trimesh()on the primitive shapes.NarrowPhase.contact_pairs_with; solver contacts readable and editable from hooks (set_solver_contact,set_tangent_velocity);QueryPipeline.project_point(max_dist=).- PD/PID controller gain properties and the world-space
Wheelstate. - Live
MultibodyJointviews andMultibody.apply_displacements. - MJCF actuators, keyframes and contact rules (
MjcfRobotHandles.contact_hooks). IntegrationParameters.warmstart_joints/friction_in_bias_pass; deterministicsin,cos,exp,sqrt… inrapier3d.math.- The wheels are built with rapier's
profilerfeature, so theCounterstimings are measured. - Testbed:
set_worldaccepts aPhysicsWorld, soft-body rendering and examples.
Modified
- Breaking:
SpringCoefficientstakesnatural_frequency/damping_ratio(stiffness/dampingare deprecated aliases) and its default damping ratio is10.0instead of5.0. RigidBodySet.remove,ColliderSet.remove,PhysicsPipeline.stepandDebugRenderPipeline.rendertake an optionalsoft_bodiesargument.SolverFlags.COMPUTE_IMPULSESis renamedCOMPUTE_RIGID_IMPULSES.- Deprecated:
FrictionModel.COEFFICIENT(nowSIMPLIFIED),ColliderSet.remove(wake_parent=)(nowwake_up), and theInteractionGroupstest modesDEFAULT/ONLY_DYNAMIC. - The enums are hashable; the type stubs cover the whole package and
Vec3/Point3are read-only.
Fixed
- Heightfields read row-major arrays correctly (the heights were scrambled).
update_query_pipelineno longer consumes the collider changes, which broke the nextstep().- Using a view of a removed object raises
InvalidHandleinstead of aPanicException. - Reading the world from a hook, or using it from another thread, no longer panics.
len(multibody_joints)counts joints, scalar PID gains apply to every axis, andContactData.contact_idis the point index (it was always 0).update_vehicleandsolve_character_collision_impulseshonor theQueryFilterpredicate.PhysicsWorld.clear()also removes the soft bodies.
Breaking — repackaged as ``rapier3d``. The single rapier umbrella
package (with rapier.dim3 submodules) has been replaced by the
rapier3d package (3D / f32):
| Before | After |
|---|---|
import rapier (3D f32 default) |
import rapier3d |
The package is a standard abi3 maturin wheel, so installs and platform
support (manylinux/musllinux, macOS, Windows) now go through the normal
wheel pipeline. The Panda3D testbed moved to a separate rapier-testbed
package.
Multi-threaded by default. The wheels are now built with the engine's
parallel feature always enabled, and the worker count is a runtime
setting: :meth:`~rapier3d.PhysicsWorld.set_num_threads` (also on
:class:`~rapier3d.PhysicsPipeline`) picks how many workers a world's
parallel stages run on, and :attr:`~rapier3d.PhysicsWorld.num_threads`
reports it. A worker count gives the world its own pool; None goes back
to rayon's global pool (one worker per logical CPU, shared by every world)
and 1 runs everything inline on the calling thread. Results are
bit-identical whatever the worker count.