SkeletonBounds Type
Collects each BoundingBoxAttachment that is visible and computes the world vertices for its polygon. The polygon vertices are provided along with convenience methods for doing hit detection.
Constructors
| Constructor | Description |
Full Usage:
SkeletonBounds()
|
|
Instance members
| Instance member | Description |
Full Usage:
this.AabbContainsPoint
Parameters:
float32
y : float32
Returns: bool
|
Returns true if the axis aligned bounding box contains the point.
|
Full Usage:
this.AabbIntersectsSegment
Parameters:
float32
y1 : float32
x2 : float32
y2 : float32
Returns: bool
|
Returns true if the axis aligned bounding box intersects the line segment.
|
|
Returns true if the axis aligned bounding box intersects the axis aligned bounding box of the specified bounds.
|
Full Usage:
this.BoundingBoxes
|
|
|
Returns true if the polygon contains the point.
|
|
Returns the first bounding box attachment that contains the point, or null. When doing many checks, it is usually more efficient to only call this method if SkeletonBounds.AabbContainsPoint returns true.
|
|
|
Full Usage:
this.Height
Returns: float32
|
|
Full Usage:
this.IntersectsSegment
Parameters:
float32
y1 : float32
x2 : float32
y2 : float32
Returns: BoundingBoxAttachment
|
Returns the first bounding box attachment that contains the line segment, or null. When doing many checks, it is usually more efficient to only call this method if !:aabbIntersectsSegment(float, float, float, float) returns true.
|
Full Usage:
this.IntersectsSegment
Parameters:
Polygon
x1 : float32
y1 : float32
x2 : float32
y2 : float32
Returns: bool
|
Returns true if the polygon contains the line segment.
|
Full Usage:
this.MaxX
|
|
Full Usage:
this.MaxY
|
|
Full Usage:
this.MinX
|
|
Full Usage:
this.MinY
|
|
Full Usage:
this.Polygons
|
|
Full Usage:
this.Update
Parameters:
Skeleton
-
The skeleton.
updateAabb : bool
-
If true, the axis aligned bounding box containing all the polygons is computed.
If false, the SkeletonBounds AABB methods will always return true.
|
Clears any previous polygons, finds all visible bounding box attachments, and computes the world vertices for each bounding box's polygon.
|
Full Usage:
this.Width
Returns: float32
|
|
Nu