env:IsNull():booleanWhether the environment wrapper is null.
A physics simulation you can step and query.
env:IsNull():booleanWhether the environment wrapper is null.
env:SetGravity(v:Vector3)Set the gravity vector.
env:GetGravity():Vector3Current gravity vector.
env:SetAirDensity(density:number)Set the air density.
env:GetAirDensity():numberCurrent air density.
env:Simulate(dt:number)Advance the simulation by a time step.
env:GetSimulationTime():numberCurrent simulation time.
env:GetSimulationTimestep():numberCurrent simulation time step.
env:SetSimulationTimestep(step:number)Set the simulation time step.
env:GetActiveObjects():tableActive physics objects as an array table.
env:ResetSimulationClock()Reset the simulation clock.
env:CreatePolyObject(model:PhysicsCollisionModel, material:number|string, params:PhysicsObjectParameters):PhysicsObjectCreate a physics object from a collision model, material and parameters.
env:DestroyObject(obj:PhysicsObject)Destroy a physics object.