-- Read the current body orientation angle as an attribute from the server, and use it to orient the character

function OrientableBody:orientFromAttribute()
	local value: Vector2 = self.character:GetAttribute(ATTRIBUTE)
	if value then
		self.motor:setGoal({
			horizontalAngle = Otter.spring(value.X),
			verticalAngle = Otter.spring(value.Y),
		})
	end
end
