x


OnTrigger Collision glitch

Hello, a peculiar glitch is occurring when my 'Boat' object collides with other 'Rock' gameobjects. On collision it will slow down dramatically, and appear to shake left and right, and often times gravitate towards the right without me controlling it. If it helps, the 'Boat' is set on a straight forward path and can only move left and right without turning. Attached to the Boat is a box collider, Rigid Body and camera. The boat is set to loose score, which is dispayed on the GUI, when it collides with a Rock. This is done by an OnTriggerEnter script. Attached to the Rocks are mesh colliders and either sphere colliders or box colliders. This glitch has just started to happen recently and has me absolutely stumped.

Thank you for any answers or feedback, -Ben

more ▼

asked May 25 '12 at 09:31 AM

ThatBenGuy gravatar image

ThatBenGuy
18 5 9 14

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

1 answer: sort voted first

Turns out the problem was that the collider on the Boat was smaller than those of the Rocks, if that makes any sense. Specifically the Y value.

more ▼

answered May 27 '12 at 01:49 AM

ThatBenGuy gravatar image

ThatBenGuy
18 5 9 14

(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:

x2584
x1765
x356
x106

asked: May 25 '12 at 09:31 AM

Seen: 531 times

Last Updated: May 27 '12 at 01:49 AM