Instance Method

updateCollisionPairs

Forces the physics engine to reevaluate possible collisions between physics bodies.

Declaration

- (void)updateCollisionPairs;

Discussion

By default, SceneKit checks for collisions between physics bodies only once per simulation step. If you directly change the positions of any physics bodies outside of a SCNPhysicsContactDelegate method, call the updateCollisionPairs method before using any of the methods listed in Searching for Physics Bodies Detecting Contacts Between Physics Bodies.

See Also

Managing the Physics Simulation

gravity

A vector that specifies the gravitational acceleration applied to physics bodies in the physics world.

speed

The rate at which the simulation executes.

timeStep

The time interval between updates to the physics simulation.