[Solved]Getting local coords relative to heading


I wondered if there was a way in Panda to set the position relative to heading without using physics. For example, if I rotate heading to 180 and then model.setY(render,+1) the model goes backwards. This also happens if I set it without being relative to render. I managed this on my server with Bullet but there is no physics on my client. Or is it the case I’ll just have to calculate that myself?


This has nothing to do with physics.

model.setY(model, 1) should be the right way to do it - it moves it 1 unit forward relative to its own coordinate system. If your model is backwards, then use -1 instead.

Thanks, yeah that seems to work.