-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PhysicsCollisionEvent getIndex0 and getIndex1 with CompoundCollisionShape #45
Comments
Thank you for documenting this issue. I'll take a look at it. |
If there are any new results, looking forward to your reply. |
After adding imports and the standard Oto model, I ran the test application. Pressing the "1" key produced an The exception was caused by using In the collision event, object A was the robot (a kinematic rigid-body control with a compound shape) and object B was the floor (a static rigid-body control with a box shape). The javadoc says that Unfortunately, I don't see an easy way to tell (in general) whether I suspect there's a similar issue with the documentation for I will correct the javadoc. And if I find how to to tell when |
Hello Sir, I think you may have a little deviation from my question. Could you take a look at this comment? I rearranged it. |
I'm busy right now, but I haven't forgotten this issue. |
OK, thank you very much. |
When I press KEY_1, I get a collision with index0 = -1 and index1 = 2435. |
Will The index1 be the index of the triangle mesh instead of the child index? Is there any other way to get which child shape of CompoundCollisionShape collided with when the collision occurred? |
Apparently it is.
Not that I know of. |
Ok, thank you very much. Please let me know if there is a solution to this problem
|
I built a robot collision scenario and created a GImpactShape for each geom of the robot, then combined these Gimpactshapes into a CompoundCollisionShape. But when I use getIndex0 and getIndex1 in PhysicsCollisionEvent, the comment is If shape is a CompoundCollisionShape, the index identifies a child shape, but the result will say more than the length of the array.
'
public class HelloGeomQuery extends SimpleApplication {
}

`
robot.zip
The text was updated successfully, but these errors were encountered: