RectangularTriggerRegion class
Class for representing a rectangular trigger region as an AABB.
- Inheritance
-
- Object
- TriggerRegion
- RectangularTriggerRegion
Constructors
- RectangularTriggerRegion([Vector3? size])
- Constructs a new rectangular trigger region with the given values.
Properties
- boundingSphereEntity → BoundingSphere
-
final
- center → Vector3
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- radius ↔ double
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size ↔ Vector3
-
latefinal
Methods
-
fromJSON(
Map< String, dynamic> json) → RectangularTriggerRegion -
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]) → RectangularTriggerRegion -
Updates this trigger region.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited