Platforms to show: All Mac Windows Linux Cross-Platform

Back to SCNPhysicsBodyMBS class.

SCNPhysicsBodyMBS.kPhysicsCollisionCategoryAll = -1

Type Topic Plugin Version
const SceneKit MBS Mac64bit Plugin 20.2
One of the collision category constants.

This is the default value for a physics body’s collisionBitMask property.
With this collision mask, a physics body can collide with all other physics bodies.

SCNPhysicsBodyMBS.kPhysicsCollisionCategoryDefault = 1

Type Topic Plugin Version
const SceneKit MBS Mac64bit Plugin 20.2
One of the collision category constants.

The default categoryBitMask value for dynamic and kinematic bodies.

SCNPhysicsBodyMBS.kPhysicsCollisionCategoryStatic = 2

Type Topic Plugin Version
const SceneKit MBS Mac64bit Plugin 20.2
One of the collision category constants.

The default categoryBitMask value for static bodies.

SCNPhysicsBodyMBS.kTypeDynamic = 1

Type Topic Plugin Version
const SceneKit MBS Mac64bit Plugin 20.2
One of the body type constants.

A physics body that can be affected by forces and collisions.
Use dynamic bodies for the elements of your scene that are moved by the physics simulation.

SCNPhysicsBodyMBS.kTypeKinematic = 2

Type Topic Plugin Version
const SceneKit MBS Mac64bit Plugin 20.2
One of the body type constants.

A physics body that is unaffected by forces or collisions but that can cause collisions affecting other bodies when moved.
Use kinematic bodies for scene elements that you want to control directly directly but whose movement manipulates other elements. For example, to allow the user to push objects around with a finger, you might create a kinematic body and attach it to an invisible node that you move to follow touch events. (In macOS, use the same technique to allow the user to move objects with the mouse pointer.)

SCNPhysicsBodyMBS.kTypeStatic = 0

Type Topic Plugin Version
const SceneKit MBS Mac64bit Plugin 20.2
One of the body type constants.

A physics body that is unaffected by forces or collisions and cannot move.
Use static bodies to construct fixtures in your scene that other bodies need to collide with but that do not themselves move, such as floors, walls, and terrain.

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


💬 Ask a question or report a problem
The biggest plugin in space...