Hello Guys,
I was studying about the apply_force method. and i can’t solve this problem situation.
Project Object:
Game Object to a ball object with dynamic object collision
A factory to create balls
some static collision object.
Problem Describe
i’m handling the apply_force by my on_input function, but when clicked over one of balls each ball inside canvas receive the command. But i want to move only that clicked ball.
ball script:
function on_input(self, action_id, action)
if action_id == hash("click") and action.pressed then
print('click')
msg.post(".", "apply_force", {force = vmath.vector3(100000, -10000, -1), position = go.get_world_position()})
end
end
Grafic sample
What i made wrong?
Thank you guys.