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.