[x3d-public] Understanding of the RigidBody specification
microaaron at pku.edu.cn
microaaron at pku.edu.cn
Sat Jun 25 13:09:07 PDT 2022
Hi:
I am confused about the rigid body physics component specification.
Since a RigidBody can contain multiple CollidableShapes, in this example 'RB_1' contains 'CS_1' and 'CS_2'. So should 'CS_1' and 'CS_2' be treated as one object as if stuck with glue, or two objects that can move independently?
If multiple CollidableShapes contained in this RigidBody belong to different CollisionSpaces, how should we understand this situation?
Thanks.
<RigidBodyCollection>
<RigidBody DEF='RB_1' mass='100'>
<CollidableShape DEF='CS_1'>
</CollidableShape>
<CollidableShape DEF='CS_2'>
</CollidableShape>
</RigidBody>
<RigidBody DEF='RB_2' mass='200'>
<CollidableShape DEF='CS_3'>
</CollidableShape>
</RigidBody>
</RigidBodyCollection>
<CollisionSpace DEF='Space_1'>
<CollidableShape USE='CS_1'>
</CollidableShape>
</CollisionSpace>
<CollisionSpace DEF='Space_2'>
<CollidableShape USE='CS_2'>
</CollidableShape>
</CollisionSpace>
<CollisionSpace DEF='Space_3'>
<CollidableShape USE='CS_3'>
</CollidableShape>
</CollisionSpace>
<MotorJoint>
<RigidBody containerField='body1' USE='RB_1'>
</RigidBody>
<RigidBody containerField='body2' USE='RB_2'>
</RigidBody>
</MotorJoint>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220626/a497e3e7/attachment.html>
More information about the x3d-public
mailing list