Class Hinge2Joint
Hierarchy
-
MotorEnabledJoint
- Hinge2Joint
Implements
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Initializes the Hinge2-Joint
Parameters
-
jointData: PhysicsJointData
The joint data for the Hinge2-Joint
Returns Hinge2Joint
-
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 ToPoint 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 any
-
physics Plugin
-
Sets the physics plugin
Parameters
-
physicsPlugin: IPhysicsEnginePlugin
Returns any
-
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 limits. Attention, this function is plugin specific. Engines won't react 100% the same.
Parameters
-
upperLimit: number
the upper limit
-
Optional lowerLimit: number
lower limit
-
Optional motorIndex: number
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 targetSpeed: number
the speed the motor is to reach
-
Optional maxForce: number
max force for this motor.
-
Optional motorIndex: number
Returns void
-
This class represents a dual hinge physics joint (same as wheel joint)
https://doc.babylonjs.com/how_to/using_the_physics_engine