Passing a normalized vector 3 to a quat (SOLVED)

#1

How would I pass a normalized vector 3 into a quaternion for a factory?

0 Likes

#2

Not sure what you want here. I think you should probably pass in a vmath.quat() directly?

0 Likes

#3

image
This is from an old forum post, but I dont understand what I am meant to pass the vector through as, the factory manual doesnt say anything about attributes

0 Likes

#4

In your example image, it says nothing about a quaternion. It only mentions a “normalized vector” (I too interpret that as a vector3)

There is an example in the documentation for factory.create().

The example is small, but to the point. (we just call them go.property() but attribute is a common name for it in computer science)

0 Likes

#5

Sorry for the late response, but this was what I was looking for thank you.

0 Likes