- Home /
Rotation(Y) and Acceleration Camera
Hello, I am using Javascript, I just need some ideas on how to write a script for a camera that rotates around the car on the y axis (of corse it is using look at) ONLY, I already have a spring joint set up with the camera that helps depict the physics on the car, looks great but the camera is stuck in one position, I want it to always be wanting to go back to the resting position BUT if the car goes into a turn, i want it to be using maybe velocity to determine the cameras drag so it lags behind in rotation over time compared to the car. I know about the smooth follow script but i need to cut out the damping and height variables because i don't need them, (I'm using physical attachment to the car. The cube is behind the car thats a child of the car, and is the connecting point for the cameras spring joint that helps inn act physical movement).
Hope that generates some thought. Daniel
I always take time to mark and rate correct/good answers.
Im talking about a rotation around the target, being the lookattarget or vehicle
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Setting Scroll View Width GUILayout 1 Answer
setup a php master server 2 Answers
Need help with WeaponSwitch Script 0 Answers