mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
fix rigidbody:set_gravity_scale
This commit is contained in:
parent
73f589d479
commit
8d29c59125
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ static int l_get_gravity_scale(lua::State* L) {
|
||||||
|
|
||||||
static int l_set_gravity_scale(lua::State* L) {
|
static int l_set_gravity_scale(lua::State* L) {
|
||||||
if (auto entity = get_entity(L, 1)) {
|
if (auto entity = get_entity(L, 1)) {
|
||||||
entity->getRigidbody().hitbox.gravityScale = lua::tonumber(L, 2);
|
entity->getRigidbody().hitbox.gravityScale = lua::tovec3(L, 2).y;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue