Unable to move pawn.
I am trying to move a class that derives from APawn. I am getting the movement component of it in script and setting the velocity of it after adding a bit of force. The values going into Set Velocity are correct, but next frame when I Get Velocity, it is still at zero.
I've tried with Simulate Physics and Start Awake on. The "Mass in KG" is set to Zero, but grayed out so I can't edit it. Ideally I'd like to Add Force or Add Force at Point to my Pawn, but I can't seem to figure out how to do that either.
Does anyone have any ideas?
asked Apr 10 '14 at 11:30 PM in Blueprint Scripting
Picking from these answers.
https://answers.unrealengine.com/questions/18734/mass-in-kg0-and-not-editable.html https://answers.unrealengine.com/questions/13455/blueprint-double-jumping.html https://forums.unrealengine.com/showthread.php?835-Setting-weight-in-default-section-of-blueprint-editor
It says you may not be able to set Mass in KG without having collision over the object. I've used Set Velocity with success but AddForce is slightly more interact. I would suggest looking at the Content Example, Level Blueprint_Input_Examples for applied linear physics in the UFO Blueprint. I don't have an example with AddForce that I can find.
answered Apr 11 '14 at 07:18 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here