-
Notifications
You must be signed in to change notification settings - Fork 46
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
CA_RayCastLineID crash #20
Comments
P.s. CA_RayCastLineID also return 0 if collision not found, but objects which added by CA_CreateObject also can have id (index) 0.. |
Totally correct. I'll fix that when I get home in a few weeks or so unless someone wants to do it for me, it's pretty simple. (@Pottus?) But about the crash, I'm not sure. Perhaps you could do some more tests. Like cast rays on |
Any created objects didn't exist. However, this code must crash your server:
I do not know, but the crash occurs precisely around these coordinates |
Try this. index = -1;
ColAndreasObjectTracker* tracker = NULL;
tracker = (ColAndreasObjectTracker*)RayCallback.m_collisionObject->getUserPointer();
if(tracker) //always be safe while manipulating pointer
index = tracker->realIndex; |
So, after a long test I get the crash: if you use CA_RayCastLineID at water (20000), then instead of return that number you will see this:
The text was updated successfully, but these errors were encountered: