diff --git a/doc/en/scripting/ecs.md b/doc/en/scripting/ecs.md index 79289cbe5..e0c6b69c6 100644 --- a/doc/en/scripting/ecs.md +++ b/doc/en/scripting/ecs.md @@ -119,6 +119,16 @@ body:set_body_type(type: str) body:get_material() -> str -- Sets the body material body:set_material(material: str) + +-- Returns the body's mass +body:get_mass() -> number +-- Sets the body's mass +body:set_mass(mass: number) + +-- Returns the body's elasticity +body:get_elasticity() -> number +-- Sets the body's elasticity +body:set_elasticity(elasticity: number) ``` ### Skeleton diff --git a/doc/ru/entity-properties.md b/doc/ru/entity-properties.md index 522b278a2..50b3b1499 100644 --- a/doc/ru/entity-properties.md +++ b/doc/ru/entity-properties.md @@ -106,7 +106,7 @@ ### Эластичность - *elasticity* -Определяет эластичность сущности (влияет на отскок при столкновении). +Определяет упругость сущности. ### Высота шага - *step-height* diff --git a/doc/ru/scripting/ecs.md b/doc/ru/scripting/ecs.md index 4bc13bc31..50735913a 100644 --- a/doc/ru/scripting/ecs.md +++ b/doc/ru/scripting/ecs.md @@ -119,6 +119,16 @@ body:set_body_type(type: str) body:get_material() -> str -- Устанавливает материал тела body:set_material(material: str) + +-- Возвращает массу тела +body:get_mass() -> number +-- Устанавливает массу тела +body:set_mass(mass: number) + +-- Возвращает упругость тела +body:get_elasticity() -> number +-- Устанавливает упругость тела +body:set_elasticity(elasticity: number) ``` ### Skeleton