# GetObjectSizeMaxX

## Description

Returns the maximum extent of the object in the X direction, this can be combined with GetObjectSizeMinX to determine the size of the object in the X direction. Note that the object may be off center so its min value may be 10 whilst its max value is 12, meaning its size is 2 units in the X direction. This command takes the bounds of all meshes that make up this object, to check the bounds of a single mesh use GetObjectMeshSizeMaxX.

## Definition

float GetObjectSizeMaxX( objID )

float agk::GetObjectSizeMaxX( UINT objID )

## Parameters

- objID - The ID of the object to check.