Angular Velocity bug

Describe the bug:
Something is odd with angular velocity. I can’t really tell what it is tbh, maybe entity:GetAngularVelocity() just returns a wrong value when physics are enabled?

How do you cause this bug?

  • List the steps
    Attach this to a script on an entity and simulate/preview. Then look into the console:
function BallScript:Init()
	local me=self:GetEntity()
	me.physicsEnabled=true
	self:Schedule(function()
		print(me:GetAngularVelocity())
		me:SetAngularVelocity(Rotation.New(90,0,0))
		print(me:GetAngularVelocity())
	end)
end

output:

[Server] pitch=0 yaw=0 roll=0
[Server] pitch=136.604 yaw=0 roll=0

the first print makes sense, but the second one does not (since i set the angular velocity to 90 pitch instead of 136.604).

Screenshots / video of bug:
https://streamable.com/0gkoz6

Which platform: PC

Which input: keyboard + mouse

Your Crayta username: Daigoro

How regularly do you see this? (E.g. 2/3 times - please try 3 times if possible):
100%

Version number (found in Help tab in Settings): 0.f3.5.122296

Hey there @Ya_shi_shi !

Thank you for bringing this to our attention, I have submitted a ticket for this issue so that our internal team can investigate this issue further.

Thank you again for entering this issue! :+1: