Collision events for Wheels
Posted: Thu Feb 27, 2014 11:15 pm
Hi,
I'm trying to hook up some collision events for detecting when a Wheel begins and ends a collision. I believe have hooked up the events correctly (in the same way as our vehicles collision that's working) - But the events are failing to be be fired? Just wanted to ask if there is anything different/deprecated etc with the Wheel events (As I think it's a class that's not really a key feature of the library anymore?)
I know there is the hasSupport bool but I really don't want to be pulling another ~1000 calls per second on the (currently 16) wheels and would rather only calculate which/how many wheels are grounded when a wheel collision is first created.
[EDIT] Just been looking at the Shape Detector, looks like it uses the NoBroadPhase CollisionRule - I imagine this is the problem here. Is there a way to modify these rules?
[EDIT 2] I'm playing about now with the CollisionRules of the Wheel, although this will solve the issue, it is clear you have set the wheel to not use standard rules. is this for performance?
Thanks
aCallum
I'm trying to hook up some collision events for detecting when a Wheel begins and ends a collision. I believe have hooked up the events correctly (in the same way as our vehicles collision that's working) - But the events are failing to be be fired? Just wanted to ask if there is anything different/deprecated etc with the Wheel events (As I think it's a class that's not really a key feature of the library anymore?)
I know there is the hasSupport bool but I really don't want to be pulling another ~1000 calls per second on the (currently 16) wheels and would rather only calculate which/how many wheels are grounded when a wheel collision is first created.
[EDIT] Just been looking at the Shape Detector, looks like it uses the NoBroadPhase CollisionRule - I imagine this is the problem here. Is there a way to modify these rules?
[EDIT 2] I'm playing about now with the CollisionRules of the Wheel, although this will solve the issue, it is clear you have set the wheel to not use standard rules. is this for performance?
Thanks
aCallum