Fix SphereCast() with mesh shapes. #29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "sphere_cast"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
I tried to use
SphereCast()but it sometimes not works for me. I found the problem is infunction SphereCastTriangle(). We have here code:But in function that call it (
TKraftShapeMesh.SphereCast()) there is a condition(Time>=0.0):So when
tis greater than0it changes it sign and always is negative.My fix is to change that line to:
After that
SphereCast()works perfectly.My test case project is CGE simple game located in
examples/physics/physics_3d_shooterin physics_walk_navigation branch commit 6fea532ae3550102bf3b6916c8a489a0022fe2ba.It should also be fixed with
github.com/BeRo1985/kraft@8e4c714960now. :-)Thanks :)
Pull request closed