- Home /
How to make an fps game while the character rolls like a ball
Hi! Can I please have a tutorial where the camera is in FPS mode while the Character when moves rolls (Example. When I press "A" the ball rolls to the Left but the Camera doesn't roll) Thanks!
Answer by Vollmondum · Jul 02, 2017 at 07:37 AM
Create empty game object. Attach your balls to it. Spin the ball with ball.rotation = Vector3.up (or forward or right) * ballspeed * timeDeltaTime
, move empty parent game object with transform.position
Answer by aayushsabharwal · Mar 05, 2018 at 07:44 PM
Create an empty GameObject child to the Camera, and attach your ball graphic there. Move the camera object with a script, and spin the ball graphic, so your camera won't rotate when the ball spins
Spinning could be done by adding a torque if you have a rigidbody or by simply using transform.Rotate(Vector3.right movSpeed Time.deltaTime);
Your answer
Follow this Question
Related Questions
How to change scenes using box collider and first person controller? 1 Answer
First Person Controller - Mouse look doesn't work 1 Answer
when I add a first person, can not move in game mode. 0 Answers
Where are First Person Controller inputs located? 1 Answer
windows.store tablet move button 0 Answers