Jump to content

[Documentation] Is entity.quaternion a Quat or Vec3?


beo6
 Share

Recommended Posts

In the Documentation quaternion is documented as a entity attribute. However it has Vec3 as Type?

Is that really correct?

 

Also i wasn't successful even getting the quaternion value of an entity:

System:Print("entity quaternion:"..self.entity.quaternion:ToString())

 

---------------------------
Error
---------------------------
attempt to index field 'quaternion' (a nil value)
---------------------------
OK
---------------------------

Link to comment
Share on other sites

Well, I used the quat class in one place in the FPS Player script:

self.carryrotation = Transform:Rotation(pickInfo.entity:GetQuaternion(true),nil,self.camera)

 

Since I used it, that means it is part of the official supported API and it should be documented.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

  • 1 year later...

Well, I used the quat class in one place in the FPS Player script:

self.carryrotation = Transform:Rotation(pickInfo.entity:GetQuaternion(true),nil,self.camera)

 

Since I used it, that means it is part of the official supported API and it should be documented.

 

So after 5 months it is still not documented. Maybe time to ..

Roland Strålberg
Website: https://rstralberg.com

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...