# RayCast3DPhysicsObject

## Description

Cast a ray and checks against the object.

## Definition

integer RayCast3DPhysicsObject( objID, rayID, fromVec3ID, toVec3ID, allOrClosest )

int agk::RayCast3DPhysicsObject( UINT objID, UINT rayID, int fromVec3ID, int toVec3ID, int allOrClosest )

## Parameters

- objID - Id of object to check against.
- rayID - ID of the ray
- fromVec3ID - ID of the starting point vector. Create a vector with the CreateVector3() command.
- toVec3ID - ID of the destination vector
- allOrClosest - 1 = all contacts, 0 = closest contact