entitypoint (sorry for double post)

Blitz3D Forums/Blitz3D Programming/entitypoint (sorry for double post)

Jack(Posted 2011) [#1]
I understand that equitypoint turns an object toward another object.

Lets assume the target is at position x300,y0,z400

And the source entity is at x100,y0,z0

so I use "entitypoint source,target"; Now the source turns.I guess?

what commad do i now use to move the source toward the target? I have been using the "moveentity x,y,z" after computing the angle but if the point command is eaiser it would speed things up.

Last edited 2011


Chroma(Posted 2011) [#2]
Where entity is the source entity and target is the....target entity.
And speed is a number > 0.

PointEntity entity,target
MoveEntity,0,0,speed


Last edited 2011