Class Island
- Namespace
- Alis.Core.Physic.Dynamics
- Assembly
- Alis.dll
This is an internal class.
public class Island
Inheritance
Inherited Members
Fields
AngTolSqr
The angular sleep tolerance
private const float AngTolSqr = 0.0012184699
Field Value
Bodies
The bodies
public Body[] Bodies
Field Value
- Body[]
BodyCapacity
The body capacity
public int BodyCapacity
Field Value
BodyCount
The body count
public int BodyCount
Field Value
ContactCapacity
The contact capacity
public int ContactCapacity
Field Value
ContactCount
The contact count
public int ContactCount
Field Value
JointCapacity
The joint capacity
public int JointCapacity
Field Value
JointCount
The joint count
public int JointCount
Field Value
JointUpdateTime
The joint update time
public TimeSpan JointUpdateTime
Field Value
LinTolSqr
The linear sleep tolerance
private const float LinTolSqr = 0.0001
Field Value
_contactManager
The contact manager
private ContactManager _contactManager
Field Value
_contactSolver
The contact solver
private readonly ContactSolver _contactSolver
Field Value
_contacts
The contacts
private Contact[] _contacts
Field Value
- Contact[]
_joints
The joints
private Joint[] _joints
Field Value
- Joint[]
_locks
The locks
internal int[] _locks
Field Value
- int[]
_positions
The positions
internal SolverPosition[] _positions
Field Value
_velocities
The velocities
internal SolverVelocity[] _velocities
Field Value
_watch
The stopwatch
private readonly Stopwatch _watch
Field Value
Methods
Add(Body)
Adds the body
public void Add(Body body)
Parameters
body
Body-
The body
Add(Contact)
Adds the contact
public void Add(Contact contact)
Parameters
contact
Contact-
The contact
Add(Joint)
Adds the joint
public void Add(Joint joint)
Parameters
joint
Joint-
The joint
Clear()
Clears this instance
public void Clear()
Report(ContactVelocityConstraint[])
Reports the constraints
private void Report(ContactVelocityConstraint[] constraints)
Parameters
constraints
ContactVelocityConstraint[]-
The constraints
Reset(int, int, int, ContactManager)
Resets the body capacity
public void Reset(int bodyCapacity, int contactCapacity, int jointCapacity, ContactManager contactManager)
Parameters
bodyCapacity
int-
The body capacity
contactCapacity
int-
The contact capacity
jointCapacity
int-
The joint capacity
contactManager
ContactManager-
The contact manager
Solve(ref TimeStep, ref Vector2)
Solves the step
internal void Solve(ref TimeStep step, ref Vector2 gravity)
Parameters
SolveTOI(ref TimeStep, int, int)
Solves the toi using the specified sub step
internal void SolveTOI(ref TimeStep subStep, int toiIndexA, int toiIndexB)