# RotateObjectGlobalZ

## Description

Rotates the specified object around global Z axis. Imagine the camera looking down the Z axis at an object with a random rotation. This command will roll the object left and right relative to the camera regardless of which way the object is facing.

## Definition

RotateObjectGlobalZ( objID, amount )

void agk::RotateObjectGlobalZ( UINT objID, float amount )

## Parameters

- objID - The ID of the object to modify.
- amount - The angle to rotate on the global Z axis in degrees, positive rolls anti-clockwise, negative rolls clockwise.