BBMOD_Ray

A constructor defined in BBMOD_Ray.gml

new BBMOD_Ray(_origin, _direction)

Description

A ray used to raycast colliders.

Arguments

Name Type Description
_origin Struct.BBMOD_Vec3 The ray's origin.
_direction Struct.BBMOD_Vec3 The ray's direction. Should be normalized!

Properties

Name Description
Direction The ray's direction. Should be normalized!
Origin The ray's origin.

Methods

Name Description
DrawDebug Draws a debug preview of the ray.
Raycast Casts the ray against a collider.

See also

BBMOD_Collider.Raycast

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on April 18, 2024 using GMDoc.