physics.vehicle.freeze_mode

Client

Enumeration of behaviors applied to the vehicle body while frozen


Values

ConstantDescription
physics.vehicle.freeze_mode.STATICBody becomes fully immovable, behaving like a static body while frozen
physics.vehicle.freeze_mode.KINEMATICBody can still be moved manually while frozen, but is not affected by physics forces

Examples

Freeze a vehicle body in kinematic mode
local entity = physics.vehicle.create()

entity:set_freeze_mode(physics.vehicle.freeze_mode.KINEMATIC)

On this page