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: 2024.1.1.0 (2024.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 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 (Overrides ShapeRayCast(RayCastOutput, RayCastInput, Transform, Int32).)
Public methodSet
Set this as an isolated edge.
Public methodTestPoint (Overrides ShapeTestPoint(Transform, Vector2).)
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
(Inherited from Shape.)
Top
Extension Methods
See Also