Download

How to change position of skeletal mesh in Character in runtime?

Currently Im working on crouching. When using ACharacter::Crouch() Only camera moves, so I have to manually change position of mesh. How can I? Also later I’ll be working on leaning, so I think I’ll need it anyway.

You can use USceneComponent::SetRelativeLocation. Though I’m not sure why you would want to move the character’s body. Shouldn’t you just play the crouch animation?

If it is like UDK, try adjusting the players collision height that will let your player go to the position your after. if it is to tall you will look like your still standing. If it is to short you will be floating off the ground. Shorter the more off the ground you will float and as you move it will look like you are on a hover board.

I only have arms.