beo6 Posted August 18, 2024 Posted August 18, 2024 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)` 1 Quote
beo6 Posted August 18, 2024 Author Posted August 18, 2024 (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 August 18, 2024 by beo6 More discovery Quote
Josh Posted October 29, 2024 Posted October 29, 2024 Is it possible to upload a simple scene that shows the problem? I tried to recreate this situation but everything worked as I expected it to. See attached. rotationtest.zip Quote Let's build cool stuff and have fun.
Solution Josh Posted October 29, 2024 Solution Posted October 29, 2024 I verified on the Lua end this is working correctly. Quote Let's build cool stuff and have fun.
Recommended Posts
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.