Player moves based on where the camera is pointing and faces the direction in which it is moving

This commit is contained in:
Gregory Campbell
2019-11-10 21:04:52 -05:00
parent b6ad41aa53
commit b696d526d5
2 changed files with 20 additions and 12 deletions
+5 -3
View File
@@ -147,8 +147,8 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 150911451}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0.5, z: 0.5}
m_LocalScale: {x: 0.5, y: 0.5, z: 0.5}
m_LocalPosition: {x: 0, y: 0.5, z: 0}
m_LocalScale: {x: 0.25, y: 0.5, z: 1.5}
m_Children: []
m_Father: {fileID: 741217456}
m_RootOrder: 0
@@ -538,7 +538,9 @@ MonoBehaviour:
speed: 20
jumpSpeed: 20
gravity: 5
rotationSpeed: 200
rotationSpeed: 20
pivot: {fileID: 1402695046}
playerModel: {fileID: 150911451}
--- !u!143 &741217458
CharacterController:
m_ObjectHideFlags: 0