0
Answered

Character Facing In Direction of Camera

Crispy 4 months ago in Game Creator updated by Marti (Lead Developer) 4 months ago 6

"The Combat view type extends the Third Person view type while keeping the camera rotated to the same local yaw value as the character. This in effect will always have the character rotated in the same forward direction as the camera."

I took this description from another asset because it describes clearly what I want. Is it possible to do this currently?

Unity version:
Game Creator version:
0.9.9

Answer

Answer
Answered

There's the Character Direction property under the Advanced Parameters. You'll find it in the Character's Inspector. By default, the character rotates towards where he/she moves but you can set it to Camera Direction. This will effectively make the character always face the same direction as the camera.

You can also swap between Camera Direction and Locomotion Direction at runtime using the Change Direction Action.

GOOD, I'M SATISFIED
Satisfaction mark by Crispy 4 months ago

This sounds a bit like the Tank cam functionally we have in the Accessibility Module, but the way your description reads, it is the other way around. Usually we want the camera facing the same direction as the character, but you ask for the character facing the same direction as the camera, Can you clarify? 

This isn't possible with the current Actions, but with a bit of coding it might be. But to do it the way you suggest, you would need to mess with the camera motor. Or have I got it wrong?

For example, PUBG and Fortnite. The Player's back is always facing the camera.

yeah, that’s a tank cam. The accessibility module provides a basic one. 

Or you can just add a Fixed Camera to the player, but you will need to mess with the sensitivity of the A and D keys. But it works. I use this for vehicle control when the player is on the vehicle, the camera is fixed to the vehicle and is always behind facing the same direction.

Thanks for the help. Fixed Camera doesn't work. The mouse should control where the player is facing. I don't know if your tank cam is what I need, but I don't really want to buy a module for that.

Answer
Answered

There's the Character Direction property under the Advanced Parameters. You'll find it in the Character's Inspector. By default, the character rotates towards where he/she moves but you can set it to Camera Direction. This will effectively make the character always face the same direction as the camera.

You can also swap between Camera Direction and Locomotion Direction at runtime using the Change Direction Action.