I’ve almost got it with a simple logic brick setup I’ll check some ramps and post my blend if i can get it to work.
edit ok use the link i post prior its in there.
I 'll go ahead and explain the set up so if my file’s gone this will still be here to explain.
first logic brick connection is to defeat the initial slide problem
keyboard sensor (W)… - AND -… Motion (run_velocity)
Property (runstart)… /xxxxxx… Property (runstart + 1)
W is setup for my forward run
Motion is giving only the corresponding initial velocity that i want my character to take off at.
I’ve add a property lets say runstart and set it equal to one
The sensor Property(runstart) is set to see if runstart is equal to one
Property (runstart +1) is adding a 1 to run start
Ok so if my property added to my moving object equals one and the W key is pressed then a velocity is applied to my object and the runstart property is changed. By changing the property the moment the key is pushed you only get a single pulse triggering the velocity. Then the W key no longer supplys any velocity since the runstart no longer = 1.
Next is the swap stage where I’m applying a force using W
Keyboard (W)… - and -… Motion (the coreesponding force)
This is so my character motion will be dependent on forces and not velocity so he can climb/get on ramps
Next is a no slide set up plus my way of reinitializing the runstart to one that way you can keep creating initial velocities.
Keyboard (W) inverse …-- AND --… Motion (stopvelocity)
Collisioin (with floor)… / xxxxx … Property (runstart assign)
W (inv)erse in the keyboard sensor is sending a pulse when W is not pressed. Collision is checking for a property (floor) on any object my character is colliding with. So if my character is not pushing W and is in contact with an object with the property floor, the motion actuator is giving a .001 velocity (nearly stopped) and my property runstart is being assigned 1 again to allow for a new run start at my initial velocity.
I’ve attached a floor property on all surface my character can walk on. The thing to do is set up a decent friction valjue in the dyn in the materials section. The flat plane will need the largest friction factor. The friction of the plane is what is slowing your character down. You need more force to climb incline plains at the same velocity as to travel the level ground and to simulate this you will need a lower friction for the inclined planes than for the ground plane. Also remember you need low Forces to get on the ramp so don’t start with forces exceeding 100.