Rigidbody velocity forward is Camera forward
HI, how can i make the Rigitbody forward is the forward of the Camera(child of the Rigitbody)
this work but Rig have his own forward
playerRig.velocity = new Vector3(Sideward, 0, Forward);
error
playerRig.velocity = playerCam(Sideward, 0, Forward);
playerRig.velocity = new Vector3(playerCam.transform.right, 0, playerCam.transform.forward);
Comment
Answer by Lev_King · Mar 07, 2017 at 09:11 AM
ok never mind ^^
playerRig.velocity = playerCam.transform.TransformDirection(Sideward, 0, Forward);