How do I restrict the movement of an actor to just one axis or only one rotation?
Hi, I followed Tesla Devs Tutorial on how to pick up objects and wanted to know if you have any idea how I can lock an object on only one axis or rotation. (For example if I want a drawer only to move forward an backwards - for only so far that it doesnt go through the back/ its startlocation or out in the front - or for the axis some lever to pull, so you can pull it down, but not through the wall or away from it) .. Hope you get what I mean and you have an idea.
asked Oct 19 '16 at 01:18 PM in Blueprint Scripting
You can set constrains for movable objects under the 'Physics' tab in the settings of a component that can simulate physics. You can restrict the axis that an object can move or rotate on under the 'Constraints' tab. Your example with the drawer might be a bit trickier tho, as I am not aware of any settings that can limit how 'far' the object can travel from it's original location, I think this needs to be done in code/Blueprints.
Wouldn't making a drawer opening/closing animation be a better idea, as it seems to be a very constrained and predictable animation that doesn't require actual physics simulation? Of course this might be not the case in your game.
answered Oct 19 '16 at 04:19 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here