Jump to content

Instant move of PlayerSpectator


photo

Recommended Posts

Posted

Hello!

I have player spectator on position1.

I need to move it to position2 as soon as possible, but I can't use setWorldPosition() method since in this case any collision influence will be ignored.

How can I do this?

Posted

+1 to this question.

How can we move physics-enabled bodies with specified trajectory but with full collision, gravity, etc. calculation?

Posted

PlayerSpectator has no body inside it and its collision behavior is much simpler.

So you can just apply transform and call updateControls() to recalculate collisions.

×
×
  • Create New...