[fixed] Issue with collision
Posted: Tue Oct 27, 2009 5:03 am
Hi,
Im not sure if its just me or not but when i use the function:
getCollisionPoint()
I have inconsisten results. What is strange is, the fact that the results do not occur in 1.5 but only in 1.6
Pretty much, what i do is create a "ray" between a camera and its look at position. It then calls this function based on that ray.
Yet sometimes, something strange happens, in which it wont get the correct object or "end" position. The ray seems to pass through the object im after.
Yet if i move myself (the camera) to a different position, it will work. So it seems depending upon the position of the object, it sometimes work's.
Hope this make sense.
The code is based off the Demo example for shooting, with only small alterations to it to suit my needs.
Does this happen to anyone else?
Cheers.
Im not sure if its just me or not but when i use the function:
getCollisionPoint()
I have inconsisten results. What is strange is, the fact that the results do not occur in 1.5 but only in 1.6
Pretty much, what i do is create a "ray" between a camera and its look at position. It then calls this function based on that ray.
Yet sometimes, something strange happens, in which it wont get the correct object or "end" position. The ray seems to pass through the object im after.
Yet if i move myself (the camera) to a different position, it will work. So it seems depending upon the position of the object, it sometimes work's.
Hope this make sense.
The code is based off the Demo example for shooting, with only small alterations to it to suit my needs.
Does this happen to anyone else?
Cheers.