No problem! Glad I could help
thanks for the post! really helps me too:grinning:
Hello everyone, firstly, thank you to @britzl for the code example. I’m trying to add code for diagonal movement to make the speed the same as vertical and horizontal.
In the update
function, add the following code:
local input_direction = vmath.vector3(0, 0, 0)
-- Check arrow key input
if self.direction.x ~= 0 or self.direction.y ~= 0 then
input_direction = vmath.normalize(self.direction)
end
And what is the problem you are facing?
thx man