I search a function for moving object

Blitz3D Forums/Blitz3D Programming/I search a function for moving object

Filax(Posted 2004) [#1]
Hi :)

I search a fonction for move an object from :)

Px1,Py1,Pz1 => Px2,Py2,Pz2

have an idea ?

Regards


Dreamora(Posted 2004) [#2]
move object px2-px1, py2-py1, pz2-pz1


Rob Farley(Posted 2004) [#3]
Or

function movetowards(sourceentity,targetentity,speed#,how_close#)

pointentity sourceentity,targetentity
moveentity sourceentity,0,0,speed

if entitydistance(sourceentity,targetentity)<how_close# then return true else return false

end function


Filax(Posted 2004) [#4]
Thanks !!! very much !