- Home /
flying camera
Hi all,
My question has already beeing asked but I can't find a solution for a noob programmer like me :)
I would like to have a flying camera (free camera) colliding with my collider meshes .
I use this script . I would just want my camera not to cross my collider object. If you Have any solutions with source or script example, I'll enjoy it!
Answer by DavidDebnar · Jun 29, 2011 at 12:17 PM
Just add a collider and restrict the rigidbody of your camera. Set rigidbody.freezeRotation and freezePosition to true. Your camera wont bounce and still shouldn't trough things. Post a code is it still isn't working.
David
Thanks $$anonymous$$. I tried this.
A try was apply Sphere Collider with a Rigidbody (Gravity is disabled). Camera collided with mesh but a strange force moved my camera and when camera collided floor, she bounce softly!
Your answer
Follow this Question
Related Questions
Car Camera help needed please 1 Answer
How to make camera position relative to a specific target. 1 Answer
Smooth Camera 2 Answers