CarrotKutay / Colosseum

Experimental Game Development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add 3rd Person camera view for player

CarrotKutay opened this issue · comments

self-explaining...

kudos for some basic brainstorm to Turbo Makes Games

next step: turning camera with player view
-> orbiting camera around player as a result

Shortcut

might be possible to take a shortcut here
-> can always take the -forward vector of the camera and add the offset of the camera to 'orbit' the camera

new changes to camera make several new problems apparent regarding movement and input handling, which have to be fixed before the new camera view can be effective for the player:

  • Turning the player should only be working on moving the input pointer to either +x or -x. The y-value should not be influencing the turning behavior of the player
  • Turning the camera on x- and y-axis depending on input received by the turn input of the player
  • Turning the camera is scalable with different values:
    • orbit and offset
    • movement speed adjustment value (non-linear lerp)
    • rotation threshold (minimum value for the input to reach)
    • max vertical rotation threshold
    • rotation speed
  • Movement should be performed depending on the look-at direction of the player / camera. If I am looking in the -z direction and pressing the forward-move input the entity should be moving along the -z axis direction #35