Skip to content

Smooth and Snap rotation



Open VR Pawn, event graph
Create InputAxis MovementAxisLeft_X, and right
(Based on input from project setting)
image.png

For Smooth rotation:


Create nodes on axis right, with added SmoothRotationSpeed variable, set speed as 5
image.png

For Snap Rotation:


Use Left axis X node, add SnapRotationAngle vairable, set value as 45
image.png

For inverse direction, add <= (less equal) node instead of >=:
(-1 in multiply node is to set inverse direction of rotation angle)
image.png


Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.