How do i constrain a components physics movements to a single axis?
I have a paddle here, and a computer screen, I want the paddle to only be able to move on the x axis. At the moment, gravity kicks in and moves my paddle down the z axis.
How do i constrain a components physics movements to a single axis?
I have a paddle here, and a computer screen, I want the paddle to only be able to move on the x axis. At the moment, gravity kicks in and moves my paddle down the z axis.
Hi Versatus,
Do you have your angular limits locked as well? Should be the section below linear limits section.
Also, if that does not work, have you tried making just the Y or Z motions free?
-Max B.
I’m not sure they use constraints, but if you look in their content example project, in the Animations level, you’ll find a few sliders that are constrained to a single axis. Try looking at one of those blueprints to see how it’s done. Might be helpful.
Yea all my angular limits are locked, only the x axis is free, and I just tried locking just y or z and its just completely ignored.
Just had a look, they dont simulate physics with the slider grips, they just calculate the position manually and clamp it. I was hoping to avoid doing this as the extra code seems unnecessary if a physics system is already in place.
I’m interested in the answer for this as well. Having something move on only one axis through forces and being able to create limits to the amount of movement on that axis, like -50 x, to 50 x