# GetObjectMeshSizeMaxX

## Description

Returns the maximum extent of the mesh in the X direction, this can be combined with GetObjectMeshSizeMinX to determine the size of the mesh in the X direction. Note that the mesh 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.

## Definition

float GetObjectMeshSizeMaxX( objID, meshIndex )

float agk::GetObjectMeshSizeMaxX( UINT objID, UINT meshIndex )

## Parameters

- objID - The ID of the object to check.
- meshIndex - The index of the mesh to check.