|
I have a rotating ball on a plane that the player rotates. I need to test/check to see that the ball is still on the plane (that way, if not, I can stop the game). It seems I need to not only check if the two objects are touching, but I need to check a little radius around the ball since it can end up slightly off the plane if you tilt the plane to it's extremes. I thought raycast would be perfect here, but no avail. Thanks for the help.
(comments are locked)
|
with that script attached to the plane and the sphere tagged as a wall or vice versa. It's saying "OnCollisionStay" is a script error. Is it C#?
Apr 17 '12 at 07:46 PM
mnm2317
Apr 17 '12 at 07:55 PM
Lo0NuhtiK
Ok, "OnCollisionStay" gives me no errors (looks like your original answer said "Collider col" when it needed "Collision col", at least according to the link there.
Apr 19 '12 at 06:55 PM
mnm2317
Yea sorry it was Collision and not Collider.. But it means that your objects aren't in collision.. Have you tried to move the cube while in collision with the plane ? Do you still have no Debug.Log ?
Apr 20 '12 at 05:01 PM
DJSwiti
did you tag the object or name the object? Make sure you use the proper one.
Apr 20 '12 at 05:05 PM
fafase
(comments are locked)
|
