PolygonShape Class |
Namespace: Internal.tainicom.Aether.Physics2D.Collision.Shapes
public class PolygonShape : Shape
The PolygonShape type exposes the following members.
Name | Description | |
---|---|---|
PolygonShape(Single) |
Create a new PolygonShape with the specified density.
| |
PolygonShape(Vertices, Single) |
Initializes a new instance of the PolygonShape class.
|
Name | Description | |
---|---|---|
ChildCount | (Overrides ShapeChildCount.) | |
Density |
Gets or sets the density.
Changing the density causes a recalculation of shape properties.
(Inherited from Shape.) | |
Normals | ||
Radius |
Radius of the Shape
Changing the radius causes a recalculation of shape properties.
(Inherited from Shape.) | |
ShapeType |
Get the type of this shape.
(Inherited from Shape.) | |
Vertices |
Create a convex hull from the given array of local points.
The number of vertices must be in the range [3, Settings.MaxPolygonVertices].
Warning: the points may be re-ordered, even if they form a convex polygon
Warning: collinear points are handled but not removed. Collinear points may lead to poor stacking behavior.
|
Name | Description | |
---|---|---|
Clone | (Overrides ShapeClone.) | |
CompareTo | ||
ComputeAABB |
Given a transform, compute the associated axis aligned bounding box for a child shape.
(Overrides ShapeComputeAABB(AABB, Transform, Int32).) | |
ComputeProperties | (Overrides ShapeComputeProperties.) | |
ComputeSubmergedArea | (Overrides ShapeComputeSubmergedArea(Vector2, Single, Transform, Vector2).) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RayCast | (Overrides ShapeRayCast(RayCastOutput, RayCastInput, Transform, Int32).) | |
TestPoint | (Overrides ShapeTestPoint(Transform, Vector2).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
MassData |
Contains the properties of the shape such as:
- Area of the shape
- Centroid
- Inertia
- Mass
(Inherited from Shape.) |
Name | Description | |
---|---|---|
MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx.) | |
PropertyGet(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
PropertyGetT(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx.) |