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: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public abstract class Shape

The Shape type exposes the following members.

Constructors
  NameDescription
Protected methodShape
Initializes 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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates 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 methodToString
Returns 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
See Also