How to use logic to change single axis angle(orientation) of object?
Hey there, I can’t seem to find a way to change orientation of an object. E.g. set object z rotation to [value].
I am talking about in logic and not a rotator. Just specifically setting angle?
The reason is I would like to have one object copy a specific axis of rotation from another.
-
You probably do need a rotator to accomplish this, and this gadget: https://indreams.me/guide/palette-glossary/assembly/components/sensors-and-input/rotation-speed-sensor.
Put the rotation sensor on the target object, then wire it to the rotator on the second object. -
But as far as I can see the rotator only allows you to apply a constant rotation force to an object. Unless I am missing something ?
-
Away from PS4 so can't test - have you opened the tweak menu of the rotator? Maybe you need an advanced rotator?
If the get angle object produces a different scale (e.g. 0-360) when you need say 0-1 as values, you'll have to use calculators or the signal manipulator. -
It’s easy to get the angles just there is no way to set them. I haves looked at advanced rotator and all over. I think it’s just not currently possible.
-
I've been using a look-at-rotator which has an input for scene space direction. I set the rotation speed and strength high and it mostly snaps to a direction with a little bit of unfortunate wobble as it stops.
So far as I can tell there's no way to change an object's transform directly so I've been using the movers for this.
The only snapping behavior I can see is using a Teleporter and attaching an object to a point in space. This is pretty limited though because you can only use it with a Tag but your mileage may vary with that. -
You can feed the output of one Look At Rotator into the Input of another
Please sign in to leave a comment.