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.

Newcomers AppGameKit Corner / SetObjectCollisionMode is not turning off collision detection

Author
Message
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 13th Aug 2017 23:28 Edited at: 13th Aug 2017 23:34
Am I misunderstanding the usage? I am trying to turn off objects that I do not want to collided with, but I am getting them returned with the objectraycast.

I set it off: SetObjectCollisionMode( str_floor, 0 )

Later I do this:
hit = ObjectRayCast( 0, raystartX#, raystartY#, raystartZ#, rayEndX#, rayEndY#, rayEndZ# )
Print(hit)

And the objectID is the str_floor.

How can I get that object to be ignored? I have tried to run a loop against objects I just want to hit, but that slows the program down, as this needs to run as a background process.

Thanks.

edit: I am an absolute idiot... I created that object in another function, and was turning off the wrong object. I was meant to turn off my ground not the floor.

Login to post a reply

Server time is: 2024-04-18 22:31:21
Your offset time is: 2024-04-18 22:31:21