SCNPhysicsBodyMBS constants

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to SCNPhysicsBodyMBS class.

Body Types

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