SphericalTriggerRegion class

Class for representing a spherical trigger region as a bounding sphere.

Inheritance

Constructors

SphericalTriggerRegion([double radius = 0])
Constructs a new spherical trigger region.

Properties

boundingSphereEntity BoundingSphere
final
hashCode int
The hash code for this object.
no setterinherited
radius double
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromJSON(Map<String, dynamic> json) SphericalTriggerRegion
Restores this instance from the given JSON object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() Map<String, dynamic>
Transforms this instance into a JSON object.
override
toString() String
A string representation of this object.
inherited
touching([GameEntity? entity]) bool
Returns true if the bounding volume of the given game entity touches/intersects the trigger region.
override
update([Trigger? trigger]) SphericalTriggerRegion
Updates this trigger region.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited