@gbison -
Quote: "I guess moving them together in essence, if that is what you are trying to say?"
Yep.
This should clear somethings up: (pseudo code)
- Make a Character Controller
- Make a Dynamic Box the a little bit smaller so the collisions of the character controller registers.
Width = 10 : Height = 10
Make Character Controller CharacterController, Width, Height
Make Dynamic Box DynamicBox, Width - 1, Height - 1
- Use linear damping and set the material to have no bounce.
- Position the dynamic box at the position of the character controller.
- Position the character controller's y position to the dynamic boxes y position.
Phy Set Rigid Body Position DynamicBox, Object Position X(CharacterController), Object Position Y(DynamicBox), Object Position Z(CharacterController)
Phy Set Rigid Body Position CharacterController, Object Position X(CharacterController), Object Position Y(DynamicBox), Object Position Z(CharacterController)
- Restrict the dynamic box from rotating on any axis.
Phy Set Rigid Body Rotation DynamicBox, 0, 0, 0
- Press space and add a force to the dynamic box on the y axis.
If SpaceKey() = 1
` Force = Amount Of force needed for the jump
Add Force DynamicBox, 0, Force, 0
EndIf
As I mentioned before I might right a tutorial on this soon if u would like to wait a while.
It doesn't work perfectly yet. I had a lot of trouble getting the character controller to jump correctly. Just takes a lot of tweaking.
Let me know if you need anymore help.
DigitalFury