velocity

how does the

object_name.linearVelocity = vec2( ,  )

command work and which values affect the direction and/or the velocity

@Coder You need a physics body to replace object_name, but this will return the current velocity of the object if you just have body.linearVelocity. If you have body.linearVelocity = vec2( x,y ) then the x values are below 0 is left, above 0 is right, y values are below 0 is down above 0 is up. Using this you can set it to any 2D direction you wish. Direction is just a name for which way the velocity is facing, but unlike velocity, direction doesn’t have a length factor so there is no magnitude.