touching method

  1. @override
bool touching([
  1. GameEntity? entity
])
override

Returns true if the bounding volume of the given game entity touches/intersects the trigger region.

Implementation

@override
bool touching([GameEntity? entity]) {
	entity?.getWorldPosition( boundingSphereEntity.center );
	boundingSphereEntity.radius = entity?.boundingRadius ?? 0;

	return _boundingSphere.intersectsBoundingSphere( boundingSphereEntity );
}