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
1fb0eb762d
commit
8ca74506f5
2 changed files with 6 additions and 0 deletions
|
|
@ -129,6 +129,9 @@ body:set_mass(mass: number)
|
||||||
body:get_elasticity() -> number
|
body:get_elasticity() -> number
|
||||||
-- Sets the body's elasticity
|
-- Sets the body's elasticity
|
||||||
body:set_elasticity(elasticity: number)
|
body:set_elasticity(elasticity: number)
|
||||||
|
|
||||||
|
-- Returns the velocity of the surface the body is on, or {0,0,0}
|
||||||
|
body:get_ground_vel() -> vec3
|
||||||
```
|
```
|
||||||
|
|
||||||
### Skeleton
|
### Skeleton
|
||||||
|
|
|
||||||
|
|
@ -129,6 +129,9 @@ body:set_mass(mass: number)
|
||||||
body:get_elasticity() -> number
|
body:get_elasticity() -> number
|
||||||
-- Устанавливает упругость тела
|
-- Устанавливает упругость тела
|
||||||
body:set_elasticity(elasticity: number)
|
body:set_elasticity(elasticity: number)
|
||||||
|
|
||||||
|
-- Возвращает скорость поверхности, на которой находится тело, либо {0,0,0}
|
||||||
|
body:get_ground_vel() -> vec3
|
||||||
```
|
```
|
||||||
|
|
||||||
### Skeleton
|
### Skeleton
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue