x


SphereCast for Camera

Can anyone show me how to use Sphere casting on a Camera to detect collisions and redirect the camera accordingly? I want to use this as an alternative to a collider on a camera since it loses it's position on collision.

The camera is following from a third person perspective, I just need the camera to maneuver out of the way of the obstacle. Like rotating around the player by 90 degrees or moving closer if it meets with a wall. The camera controller is based off the tutorial I found but it was never completed by Unity labs.

http://www.unitylabs.net/tutorials/gameplay-mechanics/third-person-camera-controller

more ▼

asked Oct 22 '10 at 06:36 PM

Persona gravatar image

Persona
246 74 85 96

Any help at all would be appreciated?

Oct 25 '10 at 06:09 PM Persona
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3003
x2498
x198
x173
x69

asked: Oct 22 '10 at 06:36 PM

Seen: 1642 times

Last Updated: Oct 25 '10 at 03:25 AM