One Logo Pool Ball
SceneKit · IOS API REFERENCE

SCNPhysicsWorld

class · SDK 27.1

class SCNPhysicsWorld

Members (18)

method

addBehavior

TypeScript
addBehavior(behavior: SCNPhysicsBehavior): void
Swift declaration
func addBehavior(_ behavior: SCNPhysicsBehavior)
method

contactTestBetween

TypeScript
contactTestBetween(bodyA: SCNPhysicsBody, bodyB: SCNPhysicsBody, options?: (NativeMap<SCNPhysicsWorld_TestOption, unknown>) | null): Array<SCNPhysicsContact>
Swift declaration
func contactTestBetween(_ bodyA: SCNPhysicsBody, _ bodyB: SCNPhysicsBody, options: [SCNPhysicsWorld.TestOption : Any]? = nil) -> [SCNPhysicsContact]
method

contactTest

TypeScript
contactTest(body: SCNPhysicsBody, options?: (NativeMap<SCNPhysicsWorld_TestOption, unknown>) | null): Array<SCNPhysicsContact>
Swift declaration
func contactTest(with body: SCNPhysicsBody, options: [SCNPhysicsWorld.TestOption : Any]? = nil) -> [SCNPhysicsContact]
method

convexSweepTest

TypeScript
convexSweepTest(shape: SCNPhysicsShape, from: SCNMatrix4, to: SCNMatrix4, options?: (NativeMap<SCNPhysicsWorld_TestOption, unknown>) | null): Array<SCNPhysicsContact>
Swift declaration
func convexSweepTest(with shape: SCNPhysicsShape, from: SCNMatrix4, to: SCNMatrix4, options: [SCNPhysicsWorld.TestOption : Any]? = nil) -> [SCNPhysicsContact]
init

init

TypeScript
static init(): SCNPhysicsWorld
Swift declaration
init()
method

rayTestWithSegment

TypeScript
rayTestWithSegment(origin: SCNVector3, dest: SCNVector3, options?: (NativeMap<SCNPhysicsWorld_TestOption, unknown>) | null): Array<SCNHitTestResult>
Swift declaration
func rayTestWithSegment(from origin: SCNVector3, to dest: SCNVector3, options: [SCNPhysicsWorld.TestOption : Any]? = nil) -> [SCNHitTestResult]
method

removeAllBehaviors

TypeScript
removeAllBehaviors(): void
Swift declaration
func removeAllBehaviors()
method

removeBehavior

TypeScript
removeBehavior(behavior: SCNPhysicsBehavior): void
Swift declaration
func removeBehavior(_ behavior: SCNPhysicsBehavior)
method

updateCollisionPairs

TypeScript
updateCollisionPairs(): void
Swift declaration
func updateCollisionPairs()
get

allBehaviors

TypeScript
get allBehaviors(): Array<SCNPhysicsBehavior>
Swift declaration
var allBehaviors: [SCNPhysicsBehavior] { get }
get

contactDelegate

TypeScript
get contactDelegate(): (SDKHandle) | null
Swift declaration
weak var contactDelegate: (any SCNPhysicsContactDelegate)? { get set }
set

contactDelegate

TypeScript
set contactDelegate(value: (Implements<SCNPhysicsContactDelegate> | SDKHandle) | null)
Swift declaration
weak var contactDelegate: (any SCNPhysicsContactDelegate)? { get set }
get

gravity

TypeScript
get gravity(): SCNVector3
Swift declaration
var gravity: SCNVector3 { get set }
set

gravity

TypeScript
set gravity(value: SCNVector3)
Swift declaration
var gravity: SCNVector3 { get set }
get

speed

TypeScript
get speed(): number
Swift declaration
var speed: CGFloat { get set }
set

speed

TypeScript
set speed(value: number)
Swift declaration
var speed: CGFloat { get set }
get

timeStep

TypeScript
get timeStep(): number
Swift declaration
var timeStep: TimeInterval { get set }
set

timeStep

TypeScript
set timeStep(value: number)
Swift declaration
var timeStep: TimeInterval { get set }

Skipped declarations

No declarations were skipped in this snapshot.

All SceneKit types →