SHingeJoint
| خاصية | ConnectedBody | Set joint to a rigidbody. |
| خاصية | Axis | The direction of the axis around which the body swings. |
| خاصية | Anchor | The position of the axis around which the body swings. |
| خاصية | ConnectedAnchor | Manual configuration of the connected anchor position. |
| خاصية | AutoConfigureConnectedAnchor | If this is enabled, then the Connected Anchor position will be calculated automatically to match the global position of the anchor property. |
| خاصية | BreakForce | Apply the force to break the joint. |
| خاصية | BreakTorque | Apply the torque to break the joint. |
| خاصية | EnableCollision | When checked, this enables collisions between bodies connected with a joint. |
| خاصية | EnablePreprocessing | Disabling preprocessing helps to stabilize impossible-to-fulfil configurations. |
| خاصية | CurrentForce | The force applied by the solver to satisfy all constraints. |
| خاصية | CurrentTorque | The torque applied by the solver to satisfy all constraints. |
| خاصية | MassScale | The scale to apply to the inverse mass and inertia tensor of the body |
| خاصية | ConnectedMassScale | The scale to apply to the inverse mass and inertia tensor of the connected body |
| خاصية | Motor | The motor makes the object spin around. |
| خاصية | Limits | The motor makes the object spin around. |
| خاصية | Spring | The motor makes the object spin around. |
| خاصية | UseMotor | The motor makes the object spin around. |
| خاصية | UseLimits | If enabled, the angle of the hinge will be restricted within the Min & Max values. |
| خاصية | UseSpring | Spring makes the Rigidbody reach for a specific angle compared to its connected body. |
| خاصية | Velocity | The angular velocity of the joint in degrees per second. |
| خاصية | Angle | The current angle in degrees of the joint relative to its rest position. |
| خاصية | GameObject | – |
الخصائص
ConnectedBody
Set joint to a rigidbody. If not set, the joint connects to the world.
مثال
connectedRigidBody = Space.Host.ExecutingObject.HingeJoint.ConnectedBody
Axis
The direction of the axis around which the body swings. The direction is defined in local space.
مثال
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.
مثال
Space.Host.ExecutingObject.HingeJoint.Anchor = Vector.New(0, 0.5 , 0)
ConnectedAnchor
Manual configuration of the connected anchor position.
مثال
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.
مثال
Space.Host.ExecutingObject.HingeJoint.AutoConfigureConnectedAnchor = false
BreakForce
Apply the force to break the joint.
مثال
Space.Host.ExecutingObject.HingeJoint.BreakForce = 20
BreakTorque
Apply the torque to break the joint.
مثال
Space.Host.ExecutingObject.HingeJoint.BreakTorque = 1
EnableCollision
When checked, this enables collisions between bodies connected with a joint.
مثال
Space.Host.ExecutingObject.HingeJoint.EnableCollision = true
EnablePreprocessing
Disabling preprocessing helps to stabilize impossible-to-fulfil configurations.
مثال
Space.Host.ExecutingObject.HingeJoint.EnablePreprocessing = true
CurrentForceللقراءة فقط
The force applied by the solver to satisfy all constraints.
مثال
vectorForce = Space.Host.ExecutingObject.HingeJoint.CurrentForce
CurrentTorqueللقراءة فقط
The torque applied by the solver to satisfy all constraints.
مثال
vectorTorque = Space.Host.ExecutingObject.HingeJoint.CurrentTorque
MassScale
The scale to apply to the inverse mass and inertia tensor of the body
مثال
Space.Host.ExecutingObject.HingeJoint.MassScale = 2
ConnectedMassScale
The scale to apply to the inverse mass and inertia tensor of the connected body
مثال
Space.Host.ExecutingObject.HingeJoint.ConnectedMassScale = 2
Motor
The motor makes the object spin around.
مثال
jointMotor = Space.Host.ExecutingObject.HingeJoint.Motor
Limits
The motor makes the object spin around.
مثال
jointLimits = Space.Host.ExecutingObject.HingeJoint.Limits
Spring
The motor makes the object spin around.
مثال
jointSpring = Space.Host.ExecutingObject.HingeJoint.Spring
UseMotor
The motor makes the object spin around.
مثال
Space.Host.ExecutingObject.HingeJoint.UseMotor = true
UseLimits
If enabled, the angle of the hinge will be restricted within the Min & Max values.
مثال
Space.Host.ExecutingObject.HingeJoint.UseLimits = true
UseSpring
Spring makes the Rigidbody reach for a specific angle compared to its connected body.
مثال
Space.Host.ExecutingObject.HingeJoint.UseSpring = true
Velocityللقراءة فقط
The angular velocity of the joint in degrees per second.
مثال
floatVelocity = Space.Host.ExecutingObject.HingeJoint.Velocity
Angleللقراءة فقط
The current angle in degrees of the joint relative to its rest position.
مثال
floatAngle = Space.Host.ExecutingObject.HingeJoint.Angle
GameObjectللقراءة فقط
مثال
theGameObject = Space.Host.ExecutingObject.HingeJoint.GameObject



