Jump to content

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


Recommended Posts

Posted

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
---------------------------

Posted

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.

Let's build cool stuff and have fun. :)

  • 1 year later...
Posted

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

Posted

  1. Entity:SetQuaternion is not documented
  2. Entity:GetQuaternion is not documented
  3. that Transform:Rotation() accepts Quaternions is not documented.

i guess these are the points from Roland.

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.

×
×
  • Create New...