Platforms to show: All Mac Windows Linux Cross-Platform

Back to SCNPhysicsHingeJointMBS class.

SCNPhysicsHingeJointMBS.Constructor(body as SCNPhysicsBodyMBS, axis as SCNVector3MBS, anchor as SCNVector3MBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SceneKit MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates a hinge joint that anchors a single physics body in space and lets it rotate around a specific axis.

body: The physics body to be controlled by the hinge joint.
axis: The direction of the axis that the body pivots around, relative to the node containing the body.
anchor: The location of the axis in the node containing the body.

Returns a new hinge joint behavior.

For a behavior to take effect, add it to the physics simulation by calling the addBehavior method on your scene’s SCNPhysicsWorldMBS object. The physics bodies constrained by the joint must be attached to nodes in the scene.

See also:

SCNPhysicsHingeJointMBS.Constructor(bodyA as SCNPhysicsBodyMBS, axisA as SCNVector3MBS, anchorA as SCNVector3MBS, bodyB as SCNPhysicsBodyMBS, axisB as SCNVector3MBS, anchorB as SCNVector3MBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SceneKit MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates a hinge joint connecting two physics bodies.

bodyA: The first physics body to be connected by the joint.
axisA: The axis that the hinge pivots around, relative to the node containing the first body.
anchorA: The point at which the hinge connects, relative to the node containing the first body.
bodyB: The second physics body to be connected by the joint.
axisB: The axis that the hinge pivots around, relative to the node containing the second body.
anchorB: The point at which the hinge connects, relative to the node containing the second body.

Returns a new hinge joint behavior.

For a behavior to take effect, add it to the physics simulation by calling the addBehavior method on your scene’s SCNPhysicsWorldMBS object. The physics bodies constrained by the joint must be attached to nodes in the scene.

See also:

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...