idanarye / bevy-tnua

A floating character controller for Bevy

Home Page:https://crates.io/crates/bevy-tnua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting XPBD Gravity resource to 0 and my character still falls ?

ethereumdegen opened this issue · comments

Setting XPBD Gravity resource to 0 and my character still falls ?

There are several things in Tuna that can generate downward acceleration/impulses even when you set the gravity to 0, but if I had to guess - I'd say it's free_fall_extra_gravity. Try setting it to 0 (at least when you disable gravity)

Also, if you are using TnuaBuiltinJump, notice that it also has several fields that end with _extra_gravity, so maybe you'll have to zero them as well.

i fixed this for now by pausing physics time when i need to prevent falling (like when world is loading)

BUT it would be cool to have a 'flying' builtin