How to prevent an actor to rotate / Lock rotation ?
Hello everybody !
I have a problem : I need a cube that can move when I push It but I want that it can't rotate (no rotation on all axis) and that it can fall in a hole.
If someone has a solution to this .. I tried many thing in the "Physics" part ...
Thank you :) !
On the physics module, drop down the constrains options and lock the rotation of all the axis you want.
answered Oct 28 '15 at 05:11 PM
I have used a component attached to a spring arm to both lock or lag a components rotation of which is parented to the spring arm.
answered Nov 23 '17 at 11:40 PM
Ha ha, interesting problem :)
Let's say that this box is an actor with box static mesh that can simulate physics. Then you can implement something in graph: use Tick event and call Set Actor Rotation with [0 0 0] rotator.
answered Oct 29 '14 at 08:31 PM
Perhaps you could set up a trigger area surrounding the hole and nearby area that prevents rotate (aka set to 0,0,0) of the actor when it is overlapping. That would prevent using the undesirable tick function and let you use this mechanic on a per-hole basis (haha, now that's a fun time term). You can filter the event by class, if you are concerned about other actors being affected.
answered Oct 29 '14 at 09:59 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here