yeah.. i had tried it.. is in HLPL
my function
pos.x = pos.x * cos(direction) + speed;
pos.y = pos.y * sin(direction) + speed;
but the problem is, the object able to move in x direction but when moving in y direction, the object so off elsewhere.
help needed please.. don't need the code. but i need formula or any source that can help me. i want to try code it myself. =)
can anyone help me with this function:
// Function to be used to update the position. Given the current position,
// the direction in which the tank is looking...