0
By Design

Fixed camera motor, look at Player, rotating by itself while walking under camera

dvr 4 months ago in Game Creator updated by Marti (Lead Developer) 4 months ago 1

Fixed camera motor, configured to look at Player

Player walk under camera, and Player start rotating by itself

Unity version:
2018.4.23f1
Game Creator version:
1.1.8
GOOD, I'M SATISFIED

Thanks for clarifying

Satisfaction mark by dvr 4 months ago
By Design

This is expected. The movement of the player is calculated relative to the camera's rotation. There's a point where the player is right below the camera, thus, making the world-space direction of the camera (0,-1,0).

When calculating the forward vector for the character I need to translate the local forward direction of the camera to world space, using the Y axis as the normal. Because both vectors are parallel, the resulting forward vector is zero, and the character moves in a random direction (due to floating point precision values).

To solve this, simply put the camera where the Player can't ever be below.