Class MotorEnabledJoint
Hierarchy
- PhysicsJoint
- MotorEnabledJoint
Implements
Index
Constructors
constructor
Initializes the Motor-Enabled Joint
Parameters
type: number
The type of the joint
jointData: PhysicsJointData
The physical joint data for the joint
Returns MotorEnabledJoint
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
set LimitSearch playground for setLimit
Set the motor's limits. Attention, this function is plugin specific. Engines won't react 100% the same.
Parameters
upperLimit: number
The upper limit of the motor
Optional lowerLimit: number
The lower limit of the motor
Returns void
set MotorSearch playground for setMotor
Set the motor values. Attention, this function is plugin specific. Engines won't react 100% the same.
Parameters
Optional force: number
the force to apply
Optional maxForce: number
max force for this motor.
Returns void
Represents a Motor-Enabled Joint
https://doc.babylonjs.com/how_to/using_the_physics_engine