update vertical damping & add rigidbody:get_vdamping

This commit is contained in:
MihailRis
2025-09-07 17:10:13 +03:00
parent 67a5741ed2
commit e064ace885
6 changed files with 28 additions and 9 deletions
+5 -3
View File
@@ -95,10 +95,12 @@ body:get_linear_damping() -> number
-- Sets the linear velocity attenuation multiplier
body:set_linear_damping(value: number)
-- Checks if vertical velocity attenuation is enabled
-- Checks if vertical damping is enabled
body:is_vdamping() -> bool
-- Enables/disables vertical velocity attenuation
body:set_vdamping(enabled: bool)
-- Returns the vertical damping multiplier
body:get_vdamping() -> number
-- Enables/disables vertical damping / sets vertical damping multiplier
body:set_vdamping(enabled: bool | number)
-- Checks if the entity is on the ground
body:is_grounded() -> bool