#can't apply impulse because I'm changing linear velocity in physics process

15 messages · Page 1 of 1 (latest)

next ibex
#

The docs make it clear that you generally should not change the linear_velocity every frame

#

And especially if you want to apply impulses

woeful shard
#

so there is a different way you can do this?

#

like, changing the linear_velocity without changing it

next ibex
#

Why are you changing it?

#

Generally you should use the various force functions

woeful shard
#

I've got some calculations

#

I tried a different way before where I applied forces instead, but that wouldn't work well

next ibex
#

Well you won't be able to use impulse functions if you just immediately override it with setting the velocity

#

You need to pick a strategy and stick with it

woeful shard
next ibex
#

Either use the rigid body's normal functions, or enforce your own control on it

#

Not both

woeful shard
#

okay

#

I'm reading the docs a bit on this stuff and I feel like I've got a better idea of what to do