How to get point of collision when collision happens

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
thesmileman
Posts: 360
Joined: Tue Feb 10, 2004 2:20 am
Location: Lubbock, TX

How to get point of collision when collision happens

Post by thesmileman »

I am trying to get the point/location in 3D space when a collision occurs. I know about the getCollisionPoint() call but this requires a line from the object in a specific location. I just want to get the location of any and all collisions so that I can handle them right when they happen.

I already have a metaTriangle selector with all the triangles in my world and collision response animators so that the object I am trying to control does not go through walls. I want to preform an action when there is a collision and I need to know what point


Also if I have a point of collision is there any way to see what node or triangleSelector it is part of?

Thanks guys(and gals if there are any out there) :D !
thesmileman
Posts: 360
Joined: Tue Feb 10, 2004 2:20 am
Location: Lubbock, TX

Post by thesmileman »

someone please!!! I have looked all throught the api and can not seem to find any way to do this. If there is not a way (Which I do not think is the case) please tell me.

THanks
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

you cant do it by using the given Collision Node Animator-- cause thats what holds the info, and it was written without the abilty to get that info from it (so as to be simple).

Instead, you need to create your own CUSTOM Collision Node Animator, which will let you handle that info when it detects a collision.
a screen cap is worth 0x100000 DWORDS
thesmileman
Posts: 360
Joined: Tue Feb 10, 2004 2:20 am
Location: Lubbock, TX

Post by thesmileman »

Thanks Finally an answer!
Post Reply