# SetObjectShapeSphere

## Description

Sets the collision shape to a sphere based on the size of the object. You must first create a physics body for the object or this command will fail.

## Definition

SetObjectShapeSphere( objID )

void agk::SetObjectShapeSphere( UINT objID )

SetObjectShapeSphere( objID, diameter )

void agk::SetObjectShapeSphere( UINT objID, float diameter )

## Parameters

- objID - object ID
- diameter - size of sphere