Parenting Plane to base.camera, Plane.getPos() not changing.

Is that on purpose?

First of all I’d like to mention that I first used base.cam a lot,
until I realized that it doesn’t really work at all.

Then I switched to base.camera and suddenly coordinates and everything changed as I moved around,
though I recall the manual saying both base.cam and base.camera are equivalent and the same thing.

shrugs

Anyhow, I attached a Plane.egg to base.camera, fully expecting it’s coordinates to change
according to when I am moving the camera around. I know it works, because on screen it works.
The Plane is always right in front of base.camera. Reparenting it to base.render otoh shows,
as expected, the plane on a fixed position in 3dspace.

So, base.camera works as expected, BUT …
… when I poll the plane’s position with getPos() it always returns it’s base coordinates.

I feel like that’s not how it should work,
considering the Plane’s proper movement relative to the camera.

So … what’s wrong here?

getPos() returns coordinates relative to the parent, ie. relative to the parent. If you want to get absolute coordinates, ie. relative to render, use getPos(render).

So that’s intended. Weird.

Thanks! :slight_smile: