Oh, i fixe it.
Its just test if the supportingEntity is null or not "Collision or not"
Thanks Norbo, you are a life saver.
Search found 4 matches
- Thu Oct 07, 2010 8:26 pm
- Forum: Questions and Help
- Topic: Wheels EventManager
- Replies: 4
- Views: 4707
- Thu Oct 07, 2010 8:11 pm
- Forum: Questions and Help
- Topic: Wheels EventManager
- Replies: 4
- Views: 4707
Re: Wheels EventManager
oops, when i try to use the SupportingEntity in the update method, i get "Object reference not set to an instance of an object." wheel.SupportingEntity = null the code is in the update method foreach (var wheel in Vehicle.Wheels) { wheel.SupportingEntity.EventManager.InitialCollisionDetect...
- Thu Oct 07, 2010 7:57 pm
- Forum: Questions and Help
- Topic: Wheels EventManager
- Replies: 4
- Views: 4707
Re: Wheels EventManager
Thanks. i will test the SupportingEntity
- Thu Oct 07, 2010 11:11 am
- Forum: Questions and Help
- Topic: Wheels EventManager
- Replies: 4
- Views: 4707
Wheels EventManager
Hi, i got some difficulties with the Wheels. Ok i have a vehicle and i want to know when each wheel have a collision with the ground or not. Iam using the WheelShape.Detector property . for (var k = 0; k < 4; k++) { Vehicle.Wheels[k].Shape.Detector.Tag = string.Format("Wheel_{0}", k); Vehi...