x


Collision while rotating around an object

While rotating an object around another, I have noticed the rotating object(which is using a Character Controller) does not collide with objects. I can only assume this is because the physics system is interpreting this as a "warp" similar to translate. How can I fix this?

more ▼

asked Mar 06 '10 at 10:17 AM

dhendrix gravatar image

dhendrix
2.2k 25 34 59

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

character controlers don't generate collision events when you don't use Move method. you should create a collider with is trigger enabled and then attach the collider to another gameObject and make that GameObject parent of character controller and then move that gameObject. i don't remember if you are able to add triggers to character controllers or not. take a look at collision reference page to find more info.

more ▼

answered Mar 06 '10 at 08:10 PM

Ashkan_gc gravatar image

Ashkan_gc
9k 33 56 117

(comments are locked)
10|3000 characters needed characters left

Rather than explicitly setting the position, you'd have to apply forces. With the character controller, that involves the Move function. Other objects would use AddForce/AddRelativeForce.

more ▼

answered Mar 06 '10 at 05:08 PM

Eric5h5 gravatar image

Eric5h5
80k 41 132 518

(comments are locked)
10|3000 characters needed characters left
Your answer
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:

x2482
x2155
x1362

asked: Mar 06 '10 at 10:17 AM

Seen: 1599 times

Last Updated: Mar 06 '10 at 10:17 AM