physics.rigid.freeze_mode

Client

Enumeration of behaviors applied to a rigid body while frozen


Values

ConstantDescription
physics.rigid.freeze_mode.STATICBody becomes fully immovable, behaving like a static body while frozen
physics.rigid.freeze_mode.KINEMATICBody can still be moved manually (e.g. via position) while frozen, but is not affected by physics forces

Examples

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

entity:set_freeze_mode(physics.rigid.freeze_mode.KINEMATIC)
entity:set_freeze_enabled(true)

On this page