Home Reference Source Repository

js/SceneKit/SCNPhysicsBodyType.js

'use strict'


/**
 * Constants that determine how a physics body interacts with forces and other bodies, used by the type property and when creating a physics body.
 * @typedef {Object} SCNPhysicsBodyType
 * @property {number} static - A physics body that is unaffected by forces or collisions and cannot move.
 * @property {number} dynamic - A physics body that can be affected by forces and collisions.
 * @property {number} kinematic - A physics body that is unaffected by forces or collisions but that can cause collisions affecting other bodies when moved.
 * @see https://developer.apple.com/documentation/scenekit/scnphysicsbodytype
 */
const SCNPhysicsBodyType = {
  static: 0,
  dynamic: 1,
  kinematic: 2
}

export default SCNPhysicsBodyType