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 ]) {
    if(entity == null) return false;
	boundingSphereEntity.set( entity.position, entity.boundingRadius );
	return _aabb.intersectsBoundingSphere( boundingSphereEntity );
}