trueaxis.com Forum Index trueaxis.com
True Axis Physics SDK Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

question about Physics::TestLineForCollision!

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    trueaxis.com Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
coollofty



Joined: 16 Apr 2005
Posts: 21

PostPosted: Sat Apr 16, 2005 1:28 pm    Post subject: question about Physics::TestLineForCollision! Reply with quote

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
View user's profile Send private message
luke
Site Admin


Joined: 15 Oct 2004
Posts: 621

PostPosted: Mon Apr 18, 2005 3:04 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    trueaxis.com Forum Index -> General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group