public GetLocalExtremePointWithoutMargin ( Vector3 &direction, Vector3 &extremePoint ) : void | ||
direction | Vector3 | Direction to find the extreme point in. |
extremePoint | Vector3 | Extreme point on the shape. |
Résultat | void |
public override void GetLocalExtremePointWithoutMargin(ref Vector3 direction, out Vector3 extremePoint)
{
if (direction.Y > 0)
extremePoint = new Vector3(0, halfLength, 0);
else if (direction.Y < 0)
extremePoint = new Vector3(0, -halfLength, 0);
else
extremePoint = Toolbox.ZeroVector;
}