Lock mesh pivot to Camera
Hello! I'm trying to pick up an object with a button press. This happens just fine. However, I can't seem to get the object to turn with me. It turns with the camera, but the objects local rotation doesn't turn with the camera. Is there a way to bind the pivot of the object to the camera's direction as long as the object is being held?
I've been struggling with this and trying to figure out if there is a way to unlock the 'locked' rotation setting while holding it, but to no avail!
asked Sep 18 '18 at 11:10 PM in Blueprint Scripting
I believe that you're trying the wrong thing mate. This question can be understood in two different ways; I'll explain both of them.
If you're trying to Rotate the Object when you're holding it, in your Programming, disable Add Pitch/Yaw when Holding it and add the Input turn Axis to the Local rotation of the object instead. If you're trying for the object to follow the character's general rotation, you can simply get ActorRotation.Yaw and then use that to set the rotation of the Yaw component of the object that you're holding.
answered Sep 18 '18 at 11:30 PM
Wouldn't it be easier to use the AttachTo node and just tell it to snap the rotation to the parent?
answered Nov 28 '18 at 12:45 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here