Jump to content

LUA: entity:GetRotation() always returns Vec3(-0,0,0)


beo6
 Share

Recommended Posts

In LUA, entity:GetRotation() always returns a Vec3 with 0, 0, 0 no matter what i rotated it in the editor.

also does not matter if i call `entity:GetRotation(true)` or `entity:GetRotation(false)`

 

image.png.a0e9e2bce0c733832ac608343553ce7c.png

  • Thanks 1
Link to comment
Share on other sites

Posted (edited)

probably only returns 0, 0, 0 when it is a child.

I moved the childs out of the parent in the editor because i wanted to rotate the parent independently.

After i moved the children back into the parent, suddenly i got rotation values...

 

Edited by beo6
More discovery
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...