| View previous topic :: View next topic |
| Author |
Message |
coollofty
Joined: 16 Apr 2005 Posts: 21
|
Posted: Sat Apr 16, 2005 1:28 pm Post subject: question about Physics::TestLineForCollision! |
|
|
I found a problem, the method Physics::TestLineForCollision seems has not filled Collision::pObjectA or Collision::pObjectB and Collision::pStaticObject fields when I called TestLineForCollision with flag FLAG_ALL_OBJECTS.
So, if I wanna a object does not collide some special objects, Should I how to do? |
|
| Back to top |
|
 |
luke Site Admin
Joined: 15 Oct 2004 Posts: 621
|
Posted: Mon Apr 18, 2005 3:04 am Post subject: |
|
|
There is a bug in the current version where if a line test intersects with a static object, pStaticObject will be zero instead of pointing to the object collided with. This has been fixed ready for the next version after 1.0.0.3.
The only way currently to make the Physics::TestLineForCollision to not collide with a DynamicObject is to use the DynamicObject::SetGhost function.
It sounds like a more advanced TestLineForCollision function might be helpful here.
To prevent certain types of objects colliding with others you can also use the dissallow collision functions and collision groups in the DynamicObject class, or use the PreProcessCollisions callback. |
|
| Back to top |
|
 |
|