Click or drag to resize

Shape Class

A shape is used for collision detection. You can create a shape however you like. Shapes used for simulation in World are created automatically when a Fixture is created. Shapes may encapsulate a one or more child shapes.
Inheritance Hierarchy

Namespace: Internal.tainicom.Aether.Physics2D.Collision.Shapes
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public abstract class Shape

The Shape type exposes the following members.

Constructors
 NameDescription
Protected methodShapeInitializes a new instance of the Shape class
Top
Properties
 NameDescription
Public propertyChildCount Get the number of child primitives.
Public propertyDensity Gets or sets the density. Changing the density causes a recalculation of shape properties.
Public propertyRadius Radius of the Shape Changing the radius causes a recalculation of shape properties.
Public propertyShapeType Get the type of this shape.
Top
Methods
 NameDescription
Public methodClone Clone the concrete shape
Public methodComputeAABB Given a transform, compute the associated axis aligned bounding box for a child shape.
Protected methodComputeProperties Compute the mass properties of this shape using its dimensions and density. The inertia tensor is computed about the local origin, not the centroid.
Public methodComputeSubmergedArea Used for the buoyancy controller
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRayCast Cast a ray against a child shape.
Public methodTestPoint Test a point for containment in this shape. Note: This only works for convex shapes.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldMassData Contains the properties of the shape such as: - Area of the shape - Centroid - Inertia - Mass
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also