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) !
How to get point of collision when collision happens
-
- Posts: 360
- Joined: Tue Feb 10, 2004 2:20 am
- Location: Lubbock, TX
-
- Posts: 360
- Joined: Tue Feb 10, 2004 2:20 am
- Location: Lubbock, TX
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.
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
-
- Posts: 360
- Joined: Tue Feb 10, 2004 2:20 am
- Location: Lubbock, TX