MakeShortestRotationBetween isn't working when given vectors, syntax error?

Print(MakeShortestRotationBetween(vector3{X:=-7616.0, Y:=-3840.0, Z:=-100.0}, vector3{X:=256.0, Y:=576.0, Z:=-100.0}))

That code is throwing the error:

This function parameter expects a value of type tuple([]char,?Duration:float = ...,?Color:color = ...), but this argument is an incompatible value of type rotation.(3509)
(/UnrealEngine.com/Temporary/SpatialMath:)vector3<computes><concrete><native><public>

Am I inputting the variables incorrectly?

I’m not getting any type errors doing this:

using { /UnrealEngine.com/Temporary/SpatialMath  }

MakeShortestRotationBetween(vector3{},vector3{})

Is this the only type error you’re seeing on all your Verse scripts?

Edit: I blanked on the Print in your snippet, woops

You’re passing the rotation directly into Print - you need to convert it to a string by doing Print("{Rotation}")

oh okay thanks, I’m just learning the syntax

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.