Hi!
I'm currently working on a small space shooter application. To shoot I'm currently using a mesh-Entity for my laser beams. I then use the IntersectionSceneQuery to check for collisions of the laser with other objects.
This works quite fine.
Then I thought i could gain some performance by exchanging the mesh-based lasers with simple billboards, since this should be enough for my purpose. So that's what I did. Shooting works fine again and it also looks okay. The only problem is that I don't get any results from the IntersectionSceneQuery anymore, so Collisions don't work anymore.
I'm using the approach shown in Oogst's tutorial which means I subclass my own classes from UserDefinedObject. In my objects i use entity->setUserObject(this) or respectively billboardset->setUserObject(this). When I connect the UserObject with mesh, collisions work fine but when i connect it to the billboard set, nothing is detected anymore.
Does this happen on purpose (aren't billboards/billboardsets meant to collide) or is this some sort of bug? Since both Entity and BillboardSet are subclasses of MovableObject they should both produce a movables2movables result in the IntersectionSceneQuery. Am I wrong?
Thx for help and kind regards!
GangMan
BillboardSet and setUserObject
-
GangMan
- Gnoblar
- Posts: 10
- Joined: Tue Nov 09, 2004 7:19 pm
- Location: Hagenberg, Austria
- Contact:
- sinbad
- OGRE Retired Team Member

- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 67
- Contact: