Is there a method in python which returns the point of contact between a ray and an object?
is it a way to get the ray distance?
Like you how long the ray is?(From where the ray starts thil where it hits??)
obj.getPosition() would get the position of the object, so the distance squared is
pos = obj.getPosition()
pos2 = raysensor.getHitPosition()
distSquared = (pos[0]-pos2[0])*(pos[0]-pos2[0]) +(pos[1]-pos2[1])*(pos[1]-pos2[1]) +(pos[2]-pos2[2])*(pos[2]-pos2[2])
so, to get the distance it would simply be the math.sqrt of that
getHitPosition? Cool! Now I can make bulletholes!
hhhmm sounds cool can u show me when u done ?
obj.getPosition() would get the position of the object, so the distance squared is
pos = obj.getPosition()
pos2 = raysensor.getHitPosition()
distSquared = (pos[0]-pos2[0])*(pos[0]-pos2[0]) +(pos[1]-pos2[1])*(pos[1]-pos2[1]) +(pos[2]-pos2[2])*(pos[2]-pos2[2])
so, to get the distance it would simply be the math.sqrt of that[/quote]
your a ginies, i never thaught about that, Thanks z3r0 d