physics.setVelocityIterations()

Type Function
Library physics.*
Return value none
Revision 2017.3060
Keywords physics, velocity, accuracy, calculations
See also physics.start()
physics.setPositionIterations()

Overview

Sets the accuracy of the engine's velocity calculations. The default value is 8.

Syntax

physics.setVelocityIterations( value )
value (required)

Number. The number of iterations. The default value is 8, which means that the engine will iterate through three velocity approximations per frame for each object. Increasing this number will cause fewer momentary inaccuracies like overlapping objects, but it will increase computational overhead. The default value should work for most general cases.

Example

physics.setVelocityIterations( 16 )