mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add rigidbody.set/get_gravity_scale
This commit is contained in:
parent
cb37d3b00c
commit
b4cf00a8f1
4 changed files with 19 additions and 3 deletions
|
|
@ -97,7 +97,7 @@ void Player::updateInput(PlayerInput& input, float delta) {
|
|||
|
||||
hitbox->linearDamping = PLAYER_GROUND_DAMPING;
|
||||
hitbox->verticalDamping = flight;
|
||||
hitbox->gravityMultiplier = flight ? 0.0f : 1.0f;
|
||||
hitbox->gravityScale = flight ? 0.0f : 1.0f;
|
||||
if (flight){
|
||||
hitbox->linearDamping = PLAYER_AIR_DAMPING;
|
||||
if (input.jump){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue