Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / ObjectSphereCast documetation incorrect returns 1 if testing for a specific Object - does not return Object ID

Author
Message
Golelorn
8
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 25th Apr 2019 03:57
Just FYI. It tripped me up for a bit. I tried to use a select case on the object returned after testing various objects, but the command only returns a 1. Could we get that updated, please?


Quote: "ObjectSphereCast
Description
Will check if the ray starting at oldx,oldy,oldz and ending at x,y,z, and of width radius#, collides with the specified object (objID=0 for all). does not collide with backfaces, will return the number of the object hit first, or 0 for no collision. Sphere casting commands add a width dimension to normal ray casting which can be used to check if a player has hit anything during movement and to position them at the collision point to provide 'sticky' collision, where the player stops if they hit anything. The alternative is sliding collision. see ObjectSphereSlide"

Login to post a reply

Server time is: 2024-11-22 21:39:20
Your offset time is: 2024-11-22 21:39:20