Have child ignore parent yaw
Here is the hierarchy I have for a tank I made.
TankBody is set to Simulate Physics and is controlled by applying forces. What I want is for the TankTurret to ignore TankBody Yaw rotation but inherit both Pitch and Roll.
I've tried the SpringArm approach but it doesn't work since TankBody is simulating physics and attaching a SpringArm between TankBody and TankTurret doesn't allow TankTurret and TankBarrel to inherit the simulate physics property of the parent (If I tick simulate physics for them separately, they lose all parent connections).
SetAbsoluteRotation also doesn't work since I still want to inherit Pitch and Roll.
How can I go about ignoring the yaw of the parent only?
asked Jul 10 '18 at 09:44 AM in Blueprint Scripting
You could set the tankturret world rotation to a constant with an event tick that allows you to lock the yaw rotation for each frame.
answered Jul 10 '18 at 10:37 AM
I actually have been dealing with this exact issue. In the transformation properties, you'll find a setting that allows you to make individual rotational and location vectors absolute. If you tick for the z-axis rotation, you should get what you want.
answered Jul 10 '18 at 12:52 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here