Class DistanceJoint
Hierarchy
- PhysicsJoint
- DistanceJoint
Index
Constructors
constructor
Parameters
jointData: DistanceJointData
The data for the Distance-Joint
Returns DistanceJoint
Properties
joint DataSearch playground for jointData
The data for the physics joint
typeSearch playground for type
The type of the physics joint
Static Ball And Socket JointSearch playground for BallAndSocketJoint
Ball-and-Socket joint type
Static Distance JointSearch playground for DistanceJoint
Distance-Joint type
Static Hinge2 JointSearch playground for Hinge2Joint
Hinge-Joint 2 type
Static Hinge JointSearch playground for HingeJoint
Hinge-Joint type
Static Lock JointSearch playground for LockJoint
Lock-Joint type
Static Point To Point JointSearch playground for PointToPointJoint
Point to Point Joint type. Similar to a Ball-Joint. Different in parameters
Static Prismatic JointSearch playground for PrismaticJoint
Prismatic-Joint type
Static Slider JointSearch playground for SliderJoint
Slider-Joint type
Static Spring JointSearch playground for SpringJoint
Spring-Joint type
Static Universal JointSearch playground for UniversalJoint
Universal-Joint type ENERGY FTW! (compare with this - @see http://ode-wiki.org/wiki/index.php?title=Manual:_Joint_Types_and_Functions)
Static Wheel JointSearch playground for WheelJoint
Wheel-Joint type
Accessors
physics Joint
Gets the physics joint
Returns any
Sets the physics joint
Parameters
newJoint: any
Returns void
physics Plugin
Sets the physics plugin
Parameters
physicsPlugin: IPhysicsEnginePlugin
Returns void
Methods
execute Native FunctionSearch playground for executeNativeFunction
Execute a function that is physics-plugin specific.
Parameters
func: ((world: any, physicsJoint: any) => void)
the function that will be executed. It accepts two parameters: the physics world and the physics joint
Parameters
world: any
physicsJoint: any
Returns void
Returns void
update DistanceSearch playground for updateDistance
Update the predefined distance.
Parameters
maxDistance: number
The maximum preferred distance
Optional minDistance: number
The minimum preferred distance
Returns void
A class representing a physics distance joint
https://doc.babylonjs.com/how_to/using_the_physics_engine