PhysicsEngineCreateSliderJoint Method (PhysicsRigidBody, PhysicsRigidBody, Matrix) |
Creates a slider (prismatic) joint in the physics world that constrains the specified
rigid bodies to maintain a fixed orientation relative to each other but are allowed to
move in the direction of the specified transform's x-axis.
Namespace:
Demo3D.Visuals
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntaxpublic PhysicsSliderJoint CreateSliderJoint(
PhysicsRigidBody rigidBody1,
PhysicsRigidBody rigidBody2,
Matrix transform
)
Parameters
- rigidBody1
- Type: Demo3D.VisualsPhysicsRigidBody
The first rigid body to constrain. - rigidBody2
- Type: Demo3D.VisualsPhysicsRigidBody
The second rigid body to constrain. - transform
- Type: Microsoft.DirectXMatrix
The transform for the slider in world-space, where the local x-axis is the axis of permitted movement.
Return Value
Type:
PhysicsSliderJoint[Missing <returns> documentation for "M:Demo3D.Visuals.PhysicsEngine.CreateSliderJoint(Demo3D.Visuals.PhysicsRigidBody,Demo3D.Visuals.PhysicsRigidBody,Microsoft.DirectX.Matrix)"]
See Also