Click or drag to resize

EdgeShape Class

A line segment (edge) shape. These can be connected in chains or loops to other edge shapes. The connectivity information is used to ensure correct contact normals.
Inheritance Hierarchy
SystemObject
  Internal.tainicom.Aether.Physics2D.Collision.ShapesShape
    Internal.tainicom.Aether.Physics2D.Collision.ShapesEdgeShape

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 class EdgeShape : Shape

The EdgeShape type exposes the following members.

Constructors
 NameDescription
Public methodEdgeShape Create a new EdgeShape with the specified start and end.
Top
Properties
 NameDescription
Public propertyChildCount
(Overrides ShapeChildCount)
Public propertyDensity Gets or sets the density. Changing the density causes a recalculation of shape properties.
(Inherited from Shape)
Public propertyHasVertex0 Is true if the edge is connected to an adjacent vertex before vertex 1.
Public propertyHasVertex3 Is true if the edge is connected to an adjacent vertex after vertex2.
Public propertyRadius Radius of the Shape Changing the radius causes a recalculation of shape properties.
(Inherited from Shape)
Public propertyShapeType Get the type of this shape.
(Inherited from Shape)
Public propertyVertex0 Optional adjacent vertices. These are used for smooth collision.
Public propertyVertex1 These are the edge vertices
Public propertyVertex2 These are the edge vertices
Public propertyVertex3 Optional adjacent vertices. These are used for smooth collision.
Top
Methods
 NameDescription
Public methodClone
(Overrides ShapeClone)
Public methodCompareTo 
Public methodComputeAABB
(Overrides ShapeComputeAABB(AABB, Transform, Int32))
Protected methodComputeProperties
(Overrides ShapeComputeProperties)
Public methodComputeSubmergedArea
(Overrides ShapeComputeSubmergedArea(Vector2, Single, Transform, Vector2))
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
(Overrides ShapeRayCast(RayCastOutput, RayCastInput, Transform, Int32))
Public methodSet Set this as an isolated edge.
Public methodTestPoint
(Overrides ShapeTestPoint(Transform, Vector2))
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
(Inherited from Shape)
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