Player Crouch

Hello, I tried use motion and animation for my player crouch. But its was not good.
How I do it?

Ok, so is your rig split up to a graphics mesh and armature, and a physics object.
The physics object is what collides with other objects, the mesh of the physics object can be changed with a action, but then need the mesh physics updated by using replace mesh actuator but leave the targets blank and just “reinstance the physics mesh”

So you need 2 things

Physics mesh with a few keyframed animations (very low poly)

Graphics mesh with actions (high detail) set to no collision.

You crouch mechanic needs to manipulate both.

Remaking the physics mesh can also be done with logic brick actuator Edit Object with mode Replace Mesh, by leaving the Mesh Field blank. This in case you don’t know Python well enough to do the same with KX_GameObject.reinstancePhysicsMesh.

Yes, but in animate if my player down a ladder and i execute the animate, the player is moved instantly to up, how do i solve this?

Collision with property ladder------and---------motion z axis force 9.8*mass
_____________________________
Keypress climbUp------------and-------motion linV (will need tweeking)

I think I misunderstood then. Are you talking about climbing a ladder, right? (so no crouching?)

Thanks so much.
I solved my problem.
@Raco: No, the ladder is only a example that my character, change the position in Z axis.
I used a basic animating of the camera down, and in “Actions Actuator” I put Flipped in the properties