I am messing around with the 3d side of things and am trying to get X_COLLISIONRAY to work,it seems i can only detect a hit when i am hitting the exact center of the object with the ray,Is this correct or am i doing something dumb?
If this is the case i will have to come up with another method.
I also am not getting any debug lines as stated in the manual.
Thanks.....
There's a demo in the samples, no?
It should work on per triangle collision
I cant find anythng in the samples,I have made my own sample but as i said the collision is very specific in the Y axis,i find it has to be exactly in line to return distance.if i change teh y at all i get no collision
Code is attached if you fancy a look.
Thanks
Help file on X_SCALEMODEL says "The advantage is that X_SCALING 1,1,1 allows the X_COLLISION, shadow and bump mapping effects to work properly." and, although not used here, in X_SCALING says "Scaled objects - especially objects that aren't scaled equally in all directions - will not work with the command X_COLLISION." :rtfm:
::)
So I suggest removing that and generate the sphere and box within code sample from X_COLLISIONSPHEREBOX in the help file! Also be aware of culling!!! :P
Ahha!!!! well done Matchy i will investigate forthwith! :good:
Nope. All scaling removed still only picks up the very central point.