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 Sweep
Inherited Members
Fields
A
World angles
public float A
Field Value
A0
The
public float A0
Field Value
Alpha0
Fraction of the current time step in the range [0,1] c0 and a0 are the positions at alpha0.
public float Alpha0
Field Value
C
Center world positions
public Vector2 C
Field Value
C0
The
public Vector2 C0
Field Value
LocalCenter
Local center of mass position
public Vector2 LocalCenter
Field Value
Methods
Advance(float)
Advance the sweep forward, yielding a new initial state.
public void Advance(float alpha)
Parameters
alpha
float-
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()