Page 1 of 1

Can setvelocity go through nodes?

PostPosted: Thu Apr 12, 2012 17:49
by lkjoel
I'm trying to setup an object that will go directly to the player, ignoring nodes. I want a little animation too (so setpos will not work). How can I make it go through nodes?

PostPosted: Thu Apr 12, 2012 17:58
by Jeija
Yes, setvelocity and setacceleration can be used for that as long as physical=false.
It works like self.object:setvelocity({x=?, y=?, z=?})

PostPosted: Thu Apr 12, 2012 18:02
by lkjoel
oh... physical=false. DUH! thanks a lot man!

PostPosted: Thu Apr 12, 2012 18:04
by Jeija
are you making a herobrine which always stands behind the player... ^^?

PostPosted: Thu Apr 12, 2012 18:09
by lkjoel