Create world with specific parameters
Posted: Wed Feb 04, 2015 1:37 pm
Hi.
I work with BEPUPhysics some time and already created a simple location with characters. But, I faced another problem now. I need to create some specific behavior for the player characters and I don't know how to achieve it (I am using CharacterController).
1.I need player to start/stop right after press/release direction keys. I press left - robot start moving left, with the desired speed (not accelereating from 0 to speed). I release key - robot stop. If I moving left and then press right, for example, robot start move right with no delay. I used HorizontalMotionConstraint to set direction, but it doesn't change direction right after pressing button. After changing direction robot still moving to old direction, changing direction step-by-step it is right in terms of physics, but I need different behavior. So, I started to set body directly LinearVelocity. Looks like it worked.
2.Speed of the character is fast enougth. And then I start moving robot just start flying, literaly, after a few steps. I can take off from small hill. I tried to increase mass then creating character controller to 99999, but it doesn't help. Maybe I am doing something wrong?
I can publish a video to show how it works now, if it helps.
Thanks.
I work with BEPUPhysics some time and already created a simple location with characters. But, I faced another problem now. I need to create some specific behavior for the player characters and I don't know how to achieve it (I am using CharacterController).
1.I need player to start/stop right after press/release direction keys. I press left - robot start moving left, with the desired speed (not accelereating from 0 to speed). I release key - robot stop. If I moving left and then press right, for example, robot start move right with no delay. I used HorizontalMotionConstraint to set direction, but it doesn't change direction right after pressing button. After changing direction robot still moving to old direction, changing direction step-by-step it is right in terms of physics, but I need different behavior. So, I started to set body directly LinearVelocity. Looks like it worked.
2.Speed of the character is fast enougth. And then I start moving robot just start flying, literaly, after a few steps. I can take off from small hill. I tried to increase mass then creating character controller to 99999, but it doesn't help. Maybe I am doing something wrong?
I can publish a video to show how it works now, if it helps.
Thanks.