-- Sets up an OrientableBody for the given player

local function onCharacterAdded(player: Player, character: Model)
	local body = OrientableBody.new(character)
	orientableBodies[player] = body

	if character == Players.LocalPlayer.Character then
		body:useCameraAsSource()
	else
		body:useAttributeAsSource()
	end
end
