# SetJointLimitOn

## Description

Works on Prismatic joints and Revolute joints. Sets the limit that this joint can reach before stopping, for revolute joints this is based on angles, for the others it is on length.
By default a joint does not have limits.

## Definition

SetJointLimitOn( iJointIndex, lowerLimit, upperLimit )

void agk::SetJointLimitOn( UINT iJointIndex, float lowerLimit, float upperLimit )

## Parameters

- iJointIndex - The ID of the joint to modify.
- lowerLimit - The smallest extent that the joint can reach.
- upperLimit - The greatest extent that the joint can reach.