How to control the character and use "Simulate physics" at the same time?

MrYannKee
Wed, 01 Apr 2020 20:19:02 +0000
World Creation

Hello,

I am making a 3D side platformer. The player (character class) is a cube and I would like the cube to follow the shape of the terrain and still be able to control the cube. Something like this:

Here is my current blueprint structure:

What I’ve tried:

1. Enable “Simulate physics” on the static mesh (MeshComp), but it causes the cube to ‘detach’ from my character. The cube respects the physics, but does not move by key presses anymore. (I can only control an invisible entity and push the cube around)

2. Stick the CapsuleComponent and the static mesh together using a PhysicsConstraint and adjust its properties.

3. Wrapping CapsuleComponent inside a PhysicsConstraint to affect all children.

4. Remove the default SkeletalMeshComponent

These didn’t seem to work. Do you guys have an idea on how I could make it work?

Thank you.

6 posts - 1 participant