Options
All
  • Public
  • Public/Protected
  • All
V1.7
  • V1.6
  • V1.7
Menu

Class PhysicsInitializationData

Struct containing data used to initialize physics.

Hierarchy

  • PhysicsInitializationData

Index

Constructors

constructor

Properties

bounceThreshold

bounceThreshold: number

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

gravity

gravity: [number, number, number]

Gravity vector, in m/s^2.

simulationRateFps

simulationRateFps: number

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

solverType

solverType: 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.

Generated using TypeDoc