player pawn to simulate physics
How can I get my player pawn to simulate physics, so while he is moving, if he bumps into a wall he will bounce off?
asked Feb 21 '17 at 06:51 AM in Using UE4
I don't have my UE4 open at the moment. But If I recall correctly, the Vive Pawn form the template (Which you seem to be using) has a motion_compontent to it? You could try to set it's motion to flying, and instead of using mouse and keyboard controllers to move the pawn, you map your levers. The motion component would allow you to set various settings like accelerations, max speed, etc.
The reason you go through with your current set up is because you are adding an offset to the location of the pawn, so regardless of where the pawn is, the function will just set it's new location. I suggest you look into the motion component, as that has collisions enabled and will stop you from penetrating objects. If you do want to keep your current set up, then you will have to add walls, that when the player collides, it will not add a new offset, or simply push the player back. But that is just reinventing the motion_movement component, so I highly suggest you look into using motion_component.
The demo looks cool. I'd like to try it out! PM and we can trade projects.
answered Feb 21 '17 at 10:30 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here