Question by
MarbleBlue · Jul 21, 2016 at 11:19 AM ·
rotationtransform.position
Converting the left and right Vector3 into a local left and right Vector3
Ok so I am working on a parkour system for my game and I have this raycast set up for wall running but I have conflicted with one problem. I need to make it so it can raycast on many different walls for example ones at like a 45 degree angle or 30. In order to achieve this I need to convert the left and right Vector to be local of the player so the player can interact with the walls (By the way I'm using a player controller).
Thanks for reading!
Comment
Answer by NoseKills · Jul 21, 2016 at 04:12 PM
Use your player object's transform's right and -right