AdjustTransformWithDurations
AdjustTransform
AdjustTransformAdjustTransformWithDurations
AdjustTransformWithDurationsChanging player's trajectory to custom angles
local adjustRequest = AdjustTransformWithDurations.new();
-- Setting any duration to 0 or lower means "do not change"
-- Slide = change player position
-- Rotation = change player rotation / trajectory / viewing angles
adjustRequest:SetSlideDuration(-1.0); -- Disabling position adjustion
adjustRequest:SetRotationDuration(1); -- Rotation show be smooth and should happen in 1 second (presumably, second!)
adjustRequest:SetUseParabolicMotion(true); -- Do not just interpolate movement/rotation, use parabolic formula
adjustRequest:SetCurve(CName.new("None")); -- Setting curve to "None", no other curves were found in the sources
adjustRequest:SetRotation(ToEulerAngles {0, 0, 0}:ToQuat()); -- Setting target player's rotation
stateContext:SetTemporaryScriptableParameter("adjustTransform", adjustRequest, true);Targeting an GameObject for trajectory
GameObject for trajectoryMoving player
Last updated


