SHingeJoint
| Propriété | ConnectedBody | Set joint to a rigidbody. |
| Propriété | Axis | The direction of the axis around which the body swings. |
| Propriété | Anchor | The position of the axis around which the body swings. |
| Propriété | ConnectedAnchor | Manual configuration of the connected anchor position. |
| Propriété | AutoConfigureConnectedAnchor | If this is enabled, then the Connected Anchor position will be calculated automatically to match the global position of the anchor property. |
| Propriété | BreakForce | Apply the force to break the joint. |
| Propriété | BreakTorque | Apply the torque to break the joint. |
| Propriété | EnableCollision | When checked, this enables collisions between bodies connected with a joint. |
| Propriété | EnablePreprocessing | Disabling preprocessing helps to stabilize impossible-to-fulfil configurations. |
| Propriété | CurrentForce | The force applied by the solver to satisfy all constraints. |
| Propriété | CurrentTorque | The torque applied by the solver to satisfy all constraints. |
| Propriété | MassScale | The scale to apply to the inverse mass and inertia tensor of the body |
| Propriété | ConnectedMassScale | The scale to apply to the inverse mass and inertia tensor of the connected body |
| Propriété | Motor | The motor makes the object spin around. |
| Propriété | Limits | The motor makes the object spin around. |
| Propriété | Spring | The motor makes the object spin around. |
| Propriété | UseMotor | The motor makes the object spin around. |
| Propriété | UseLimits | If enabled, the angle of the hinge will be restricted within the Min & Max values. |
| Propriété | UseSpring | Spring makes the Rigidbody reach for a specific angle compared to its connected body. |
| Propriété | Velocity | The angular velocity of the joint in degrees per second. |
| Propriété | Angle | The current angle in degrees of the joint relative to its rest position. |
| Propriété | GameObject | – |
Propriétés
ConnectedBody
Set joint to a rigidbody. If not set, the joint connects to the world.
Exemple
connectedRigidBody = Space.Host.ExecutingObject.HingeJoint.ConnectedBody
Axis
The direction of the axis around which the body swings. The direction is defined in local space.
Exemple
Space.Host.ExecutingObject.HingeJoint.Axis = Vector.New(0,1,0)
Anchor
The position of the axis around which the body swings. The position is defined in local space.
Exemple
Space.Host.ExecutingObject.HingeJoint.Anchor = Vector.New(0, 0.5 , 0)
ConnectedAnchor
Manual configuration of the connected anchor position.
Exemple
Space.Host.ExecutingObject.HingeJoint.ConnectedAnchor = Vector.New(1,1,1)
AutoConfigureConnectedAnchor
If this is enabled, then the Connected Anchor position will be calculated automatically to match the global position of the anchor property. This is the default behavior. If this is disabled, you can configure the position of the connected anchor manually.
Exemple
Space.Host.ExecutingObject.HingeJoint.AutoConfigureConnectedAnchor = false
BreakForce
Apply the force to break the joint.
Exemple
Space.Host.ExecutingObject.HingeJoint.BreakForce = 20
BreakTorque
Apply the torque to break the joint.
Exemple
Space.Host.ExecutingObject.HingeJoint.BreakTorque = 1
EnableCollision
When checked, this enables collisions between bodies connected with a joint.
Exemple
Space.Host.ExecutingObject.HingeJoint.EnableCollision = true
EnablePreprocessing
Disabling preprocessing helps to stabilize impossible-to-fulfil configurations.
Exemple
Space.Host.ExecutingObject.HingeJoint.EnablePreprocessing = true
CurrentForceLecture seule
The force applied by the solver to satisfy all constraints.
Exemple
vectorForce = Space.Host.ExecutingObject.HingeJoint.CurrentForce
CurrentTorqueLecture seule
The torque applied by the solver to satisfy all constraints.
Exemple
vectorTorque = Space.Host.ExecutingObject.HingeJoint.CurrentTorque
MassScale
The scale to apply to the inverse mass and inertia tensor of the body
Exemple
Space.Host.ExecutingObject.HingeJoint.MassScale = 2
ConnectedMassScale
The scale to apply to the inverse mass and inertia tensor of the connected body
Exemple
Space.Host.ExecutingObject.HingeJoint.ConnectedMassScale = 2
Motor
The motor makes the object spin around.
Exemple
jointMotor = Space.Host.ExecutingObject.HingeJoint.Motor
Limits
The motor makes the object spin around.
Exemple
jointLimits = Space.Host.ExecutingObject.HingeJoint.Limits
Spring
The motor makes the object spin around.
Exemple
jointSpring = Space.Host.ExecutingObject.HingeJoint.Spring
UseMotor
The motor makes the object spin around.
Exemple
Space.Host.ExecutingObject.HingeJoint.UseMotor = true
UseLimits
If enabled, the angle of the hinge will be restricted within the Min & Max values.
Exemple
Space.Host.ExecutingObject.HingeJoint.UseLimits = true
UseSpring
Spring makes the Rigidbody reach for a specific angle compared to its connected body.
Exemple
Space.Host.ExecutingObject.HingeJoint.UseSpring = true
VelocityLecture seule
The angular velocity of the joint in degrees per second.
Exemple
floatVelocity = Space.Host.ExecutingObject.HingeJoint.Velocity
AngleLecture seule
The current angle in degrees of the joint relative to its rest position.
Exemple
floatAngle = Space.Host.ExecutingObject.HingeJoint.Angle
GameObjectLecture seule
Exemple
theGameObject = Space.Host.ExecutingObject.HingeJoint.GameObject



