Class PhysicsJoint
Hierarchy
- PhysicsJoint
Index
Constructors
constructor
Initializes the physics joint
Parameters
type: number
The type of the physics joint
jointData: PhysicsJointData
The data for the physics joint
Returns PhysicsJoint
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
This is a holder class for the physics joint created by the physics plugin It holds a set of functions to control the underlying joint
https://doc.babylonjs.com/how_to/using_the_physics_engine