public class Island
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Body[] |
m_bodies |
int |
m_bodyCapacity |
int |
m_bodyCount |
int |
m_contactCapacity |
int |
m_contactCount |
Contact[] |
m_contacts |
int |
m_jointCapacity |
int |
m_jointCount |
Joint[] |
m_joints |
ContactListener |
m_listener |
Position[] |
m_positions |
Velocity[] |
m_velocities |
Constructor and Description |
---|
Island() |
Modifier and Type | Method and Description |
---|---|
void |
add(Body body) |
void |
add(Contact contact) |
void |
add(Joint joint) |
void |
clear() |
void |
init(int bodyCapacity,
int contactCapacity,
int jointCapacity,
ContactListener listener) |
void |
report(ContactVelocityConstraint[] constraints) |
void |
solve(Profile profile,
TimeStep step,
Vec2 gravity,
boolean allowSleep) |
void |
solveTOI(TimeStep subStep,
int toiIndexA,
int toiIndexB) |
public ContactListener m_listener
public Body[] m_bodies
public Contact[] m_contacts
public Joint[] m_joints
public Position[] m_positions
public Velocity[] m_velocities
public int m_bodyCount
public int m_jointCount
public int m_contactCount
public int m_bodyCapacity
public int m_contactCapacity
public int m_jointCapacity
public void init(int bodyCapacity, int contactCapacity, int jointCapacity, ContactListener listener)
public void clear()
public void solveTOI(TimeStep subStep, int toiIndexA, int toiIndexB)
public void add(Body body)
public void add(Contact contact)
public void add(Joint joint)
public void report(ContactVelocityConstraint[] constraints)
Copyright © 2017. All Rights Reserved.