BBMOD_PlaneCollider

A constructor defined in BBMOD_PlaneCollider.gml

Extends BBMOD_Collider

new BBMOD_PlaneCollider([_normal[, _distance]])

Description

A plane collider.

Arguments

Name Type Description
_normal Struct.BBMOD_Vec3 The plane's normal vector. Defaults to BBMOD_VEC3_UP.
_distance Real The plane's distance from the world origin.

Properties

Name Description
Distance The plane's distance from the world origin.
Normal The plane's normal vector.

Inherited methods

Name Description
DrawDebug Draws a debug preview of the collider.
GetClosestPoint Retrieves a point on the surface of the collider that is closest to the point specified.
Raycast Casts a ray against the collider.
TestAABB Tests whether the collider intersects with an AABB.
TestFrustum Tests whether the collider intersects with a frustum.
TestPlane Tests whether the collider intersects with a plane.
TestPoint Tests whether the collider intersects with a point.
TestSphere Tests whether the collider intersects with a sphere.

See also

BBMOD_AABBCollider, BBMOD_FrustumCollider, BBMOD_SphereCollider

Do you find this page helpful?

Copyright © 2023, BlueBurn. Built on September 11, 2023 using GMDoc.