PhysicsInitializationData

lumin. PhysicsInitializationData

Struct containing data used to initialize physics.

Constructor

new PhysicsInitializationData()

Members

bounceThreshold :number

A velocity limit below which objects will not bounce. 2 is a good base value.

Type:
  • number

gravity :vec3

Gravity vector, in m/s^2.

Type:
  • vec3

simulationRateFps :number

Rate to run the simulation, in frames per second. Should be less
than the update/render rate.

Type:
  • number

solverType :lumin.physics.SolverType

Type of collision solver to use. If the type is kFastNormal or kFastFast,
setEnableCCD() can be called on a rigid body to enable CCD collisions for it.

Type: