Hi, I am trying to add character motion. Take a look at the attached blend.
My character is a 80kg mass that uses four servo motion actuators attached through and controllers to four sensors, W, A, S and D.
When I press W, the character moves forward and stops when it’s released just like it should.
W, A, S & D all have the desired reactions.
However, if I press a combination such as W and A, W and D, S and A or S and D, the character moves at the desired angle, but very slowly and then stops.
Once one or both of the keys are released, the player then has a quick jolt of movement and the player stops.
I need the combinations to move the player at 45, 135, 225 and 315 degree angles just like they would in a linear direction if only one key was pressed.
What can I do about this?
Edit: I think the reason it is doing this is because the servo motion won’t let an object move in two directions at once, and it doesn’t know that the forces in different directions should be independent of each other.
In Physics, if the character has a force pushing it forward and a force pushing it to the right, the character would accelerate forward and would accelerate right. As a result, the character would accelerate forward and to the right.
Edit: I corrected for the lack of independence by creating four inverses of W, A, S and D. The four inverses prevent a the actuator hooked to W, A, S and D from activating when a combination is pressed. Instead, a combination controller activates a combination sensor.
I have to have eight controllers, but it works.
Attachments
testmovement.blend (166 KB)