mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update doc/*/scripting/ecs.md
This commit is contained in:
parent
578142c081
commit
d6ebdfdd29
3 changed files with 21 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@
|
|||
|
||||
### Эластичность - *elasticity*
|
||||
|
||||
Определяет эластичность сущности (влияет на отскок при столкновении).
|
||||
Определяет упругость сущности.
|
||||
|
||||
### Высота шага - *step-height*
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue