Struct Sweep
- Namespace
- Alis.Core.Physic.Common
- Assembly
- Alis.dll
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.
public struct SweepInherited Members
Fields
A
World angles
public float AField Value
A0
The
public float A0Field Value
Alpha0
Fraction of the current time step in the range [0,1] c0 and a0 are the positions at alpha0.
public float Alpha0Field Value
C
Center world positions
public Vector2 CField Value
C0
The
public Vector2 C0Field Value
LocalCenter
Local center of mass position
public Vector2 LocalCenterField Value
Methods
Advance(float)
Advance the sweep forward, yielding a new initial state.
public void Advance(float alpha)Parameters
alphafloat-
new initial time..
GetTransform(out Transform, float)
Get the interpolated transform at a specific time.
public void GetTransform(out Transform xfb, float beta)Parameters
Normalize()
Normalize the angles.
public void Normalize()