Raycast

function

Raycast(_collider[, _result])

Description

Casts the ray against a collider.

Arguments

Name Type Description
_collider Struct.BBMOD_Collider The collider to cast the ray against.
_result Struct.BBMOD_RaycastResult/Undefined Where to store additional raycast info to.

Returns

Bool Returns true if the ray hits the collider.

Throws

Note

This is the same as calling _collider.Raycast(_ray, _result)!

See also

BBMOD_Collider.Raycast, BBMOD_RaycastResult

Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on June 19, 2022 using GMDoc.