Page 1 of 1
Terrain collisionrules group null in event.
Posted: Thu Sep 24, 2009 3:10 pm
by imtrobin
Reporting a bug,
I set the terrain collisionrules.group to a specific collisiongroup. In the event collision callback, the other.Entity.collisionRules.group (this is the terrain) is null.
Re: Terrain collisionrules group null in event.
Posted: Thu Sep 24, 2009 8:45 pm
by Norbo
With which event type did it happen, and what sort of actions were being performed at the time of the error?
Re: Terrain collisionrules group null in event.
Posted: Fri Sep 25, 2009 2:42 am
by imtrobin
EventHandlerInitialCollisionDetected
I was just reading it's Entity.collisionRules.group to compare.
I setup the Terrain with a collisionRule group
Terrain terrain_;
terrain_.collisionRules.group = collisionGroup; //this s a new CollisionGroup I pass in, non null)
Space.add (terrain_);
Re: Terrain collisionrules group null in event.
Posted: Fri Sep 25, 2009 7:25 am
by Norbo
I am unable to replicate the error; is it rare or erratic? A repro case would help.
Re: Terrain collisionrules group null in event.
Posted: Fri Sep 25, 2009 11:40 am
by imtrobin
Ahh. I got the reason. I wasn't testing the Entity.collisionRule directly but the Entity.tag collisionRule. For the terrain, the tag is tied to a dummy Entity that has noPair.
My bad, apologies.