So I’m making a ring toss game and need to be able to test whether the ring is successfully sitting around the cyclinder collider of the bottle. (there are two colliders, one for the narrow top of the bottle and one wider for the bottom and it seems to work well)
Basically I don’t know where to start with this… any help would be appreciated.
Skype: kevin.williams901
Thanks
Mike_L
January 8, 2011, 3:36am
2
maybe you could make a trigger that is a capsule and make it larger than the bottle, and then attach a script to it that uses OnTriggerEnter
Interesting but what if the ring enters the trigger by hitting the side of the bottle and bounces out?
Should I start a timer to make sure it stays in that range or something?
Mike_L
January 8, 2011, 3:39am
4
yeah, or you could make it a little shorter than the bottle and do that
I think the timer would work better… anyway I’m not sure why I didn’t even think of a trigger collider… sad really. Thanks though - hopefully it works well.
Mike_L
January 8, 2011, 3:43am
6
ok, your welcome. I’m sure it would work fine.
Didn’t want to start a new thread so:
When my mesh collider (for the ring) collides with the cyllinder collider, the game slows down - a lot, like to 0.5fps.
Anyone know why or how to get around it?
Mike_L
January 8, 2011, 4:57am
8
what does the ring have on it? and what does the cylinder collider have connected to it?
cyllinder collider is attached to a couple poly bottle. ring has script for throwing and the model
(on mobile)
Mike_L
January 8, 2011, 4:59am
10
on mobile? I dont know why it does that. what mobile device is this?
Mike_L
January 8, 2011, 5:02am
12
that really makes no sense why it does that. what else is attached to the two objects?
A rigidbody on the ring… that’s pretty much it though…
Mike_L
January 8, 2011, 5:08am
14
what are the properties of the rigidbody?
Mike_L
January 8, 2011, 5:13am
16
well, I really cant explain why it is doing that, it makes no sense, at all. it shouldn’t do that.
Just noticed this, related?
Mike_L
January 8, 2011, 5:38am
18
yeah, probably. I think what it is saying is that there are too many triangles in it
i tried using an even lower poly ring… but its still extremely choppy as soon as it hits the bottle collider
Mike_L
January 8, 2011, 5:53am
20
try just a sphere made in unity, a partially flat one.