BBMOD_SphereCollider

A constructor defined in BBMOD_SphereCollider.gml

Extends BBMOD_Collider

new BBMOD_SphereCollider([_position[, _radius]])

Description

A sphere collider.

Arguments

Name Type Description
_position Struct.BBMOD_Vec3 The position of the sphere Defaults to (0, 0, 0).
_radius Real The radius of the sphere. Defaults to 1.

Properties

Name Description
Position The position of the sphere.
Radius The radius of the sphere.

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_PlaneCollider

Do you find this page helpful?

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