Click or drag to resize

Sweep Structure

This describes the motion of a body/shape for TOI computation. Shapes are defined with respect to the body origin, which may no coincide with the center of mass. However, to support dynamics we must interpolate the center of mass position.

Namespace:  Internal.tainicom.Aether.Physics2D.Common
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public struct Sweep

The Sweep type exposes the following members.

Methods
  NameDescription
Public methodAdvance
Advance the sweep forward, yielding a new initial state.
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetTransform
Get the interpolated transform at a specific time.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodNormalize
Normalize the angles.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Fields
  NameDescription
Public fieldA
World angles
Public fieldA0
Public fieldAlpha0
Fraction of the current time step in the range [0,1] c0 and a0 are the positions at alpha0.
Public fieldC
Center world positions
Public fieldC0
Public fieldLocalCenter
Local center of mass position
Top
Extension Methods
See Also