Hi! This may be duplicate, i don’t know. But, i am having a bullet (“bullet.go”) with this script
function init(self) local self.movdir = theway self.speed = 10 end function update(self, dt) local rotation = go.get_rotation() local direction = vmath.vector(1,0,0) local updateddirection = vmath.rotate(rotation, direction) local updatedposition = position + updateddirection * self.speed * dt end
And it gets theway from the gun. If i understand the post i got the code from the bullet should move but it just floats in the air. Anybody that can help me.
(@britzl i know you have answered in a lot of discussions on this question but, i don’t understand so good)
I know we have a “answer” to this and that is
but i cant really read the code, so can somebody help me?