[SOLVED] rayTestVehicle help

iLoggie
Posts: 3
Joined: Mon Apr 04, 2011 3:14 pm

[SOLVED] rayTestVehicle help

Post by iLoggie »

I'm trying to calculate the distance between my vehicle and the track directly below it using rayTestSingle, but I can't get it to return true for hasHit( ). Is anyone able to tell me what I'm doing wrong?

https://gist.github.com/4eca8b85522cb37ec4d4
iLoggie
Posts: 3
Joined: Mon Apr 04, 2011 3:14 pm

Re: [SOLVED] rayTestVehicle help

Post by iLoggie »

Figured it out eventually.. the -10 from the vehicle didn't even reach the track, an extremely stupid mistake :(