How to properly make a mesh hierarchy for a player controller? Where does the camera should be placed?

I’ve created simple playerCapsuleMesh as a root node for my player setup. I can’t use just TransformNode because I wanna move the player with moveWithCollisions(). Ok, then I decided where a camera should be and I did following:
this._camera.parent = this._playerCapsuleMesh;
And then I’ve got it was my fault. After scaling the playerCapsuleMesh, it aslo scale the camera as well, so I got uglied scaled world around my player :grinning:

So where does the camera should be placed to move with the scaled player? Or how to attach a camera to a scale player’s mesh to not to get that scaling effect to the camera?

There is a camera property:

camera.ignoreParentScaling = true

3 Likes