-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPBGE: Fix compound ray cast with triangle child shape.
Previously when a compound shape was hit by a ray cast the information about the children triangles was inaccessible because of a lack from the bullet API. To fix this issue we have to keep the triangle index but add a child index of the compound child shape hit. m_childIndex is dedicated for in LocalRayResult and its value is set in rayTestSingleInternal, -1 for non compound shapes. This value is catch from FilterClosestRayResultCallback and used in RayTest to get the actual collision shape. To still get the shape construction info of the children, each collision shape created has as user pointer the shape costruction info. This object is get in RayTest to find the mesh and polygon. Tested with: - mix of convex and concave shape in a compound shape. - non compound concave and convex shape.
- Loading branch information
1 parent
4a5055c
commit fbbd184
Showing
7 changed files
with
119 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters