Table of Contents

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

float

Bodies

The bodies

public Body[] Bodies

Field Value

Body[]

BodyCapacity

The body capacity

public int BodyCapacity

Field Value

int

BodyCount

The body count

public int BodyCount

Field Value

int

ContactCapacity

The contact capacity

public int ContactCapacity

Field Value

int

ContactCount

The contact count

public int ContactCount

Field Value

int

JointCapacity

The joint capacity

public int JointCapacity

Field Value

int

JointCount

The joint count

public int JointCount

Field Value

int

JointUpdateTime

The joint update time

public TimeSpan JointUpdateTime

Field Value

TimeSpan

LinTolSqr

The linear sleep tolerance

private const float LinTolSqr = 0.0001

Field Value

float

_contactManager

The contact manager

private ContactManager _contactManager

Field Value

ContactManager

_contactSolver

The contact solver

private readonly ContactSolver _contactSolver

Field Value

ContactSolver

_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

SolverPosition[]

_velocities

The velocities

internal SolverVelocity[] _velocities

Field Value

SolverVelocity[]

_watch

The stopwatch

private readonly Stopwatch _watch

Field Value

Stopwatch

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

step TimeStep

The step

gravity Vector2

The gravity

SolveTOI(ref TimeStep, int, int)

Solves the toi using the specified sub step

internal void SolveTOI(ref TimeStep subStep, int toiIndexA, int toiIndexB)

Parameters

subStep TimeStep

The sub step

toiIndexA int

The toi index

toiIndexB int

The toi index