C# Class Box2D.Dynamics.Island

This is an internal class.
显示文件 Open project: gerich-home/box2dnet

Public Properties

Property Type Description
Bodies Box2D.Dynamics.Body[]
BodyCapacity int
BodyCount int
ContactCapacity int
ContactCount int
Contacts Box2D.Dynamics.Contacts.Contact[]
JointCapacity int
JointCount int
Joints Box2D.Dynamics.Joints.Joint[]
Listener IContactListener
Positions Box2D.Dynamics.Contacts.Position[]
Velocities Box2D.Dynamics.Contacts.Velocity[]

Public Methods

Method Description
Add ( Body body ) : void
Add ( Contact contact ) : void
Add ( Joint joint ) : void
Clear ( ) : void
Init ( int bodyCapacity, int contactCapacity, int jointCapacity, IContactListener listener ) : void
Report ( ContactVelocityConstraint constraints ) : void
Solve ( Profile profile, TimeStep step, Vec2 gravity, bool allowSleep ) : void
SolveToi ( TimeStep subStep, int toiIndexA, int toiIndexB ) : void

Method Details

Add() public method

public Add ( Body body ) : void
body Body
return void

Add() public method

public Add ( Contact contact ) : void
contact Box2D.Dynamics.Contacts.Contact
return void

Add() public method

public Add ( Joint joint ) : void
joint Box2D.Dynamics.Joints.Joint
return void

Clear() public method

public Clear ( ) : void
return void

Init() public method

public Init ( int bodyCapacity, int contactCapacity, int jointCapacity, IContactListener listener ) : void
bodyCapacity int
contactCapacity int
jointCapacity int
listener IContactListener
return void

Report() public method

public Report ( ContactVelocityConstraint constraints ) : void
constraints Box2D.Dynamics.Contacts.ContactVelocityConstraint
return void

Solve() public method

public Solve ( Profile profile, TimeStep step, Vec2 gravity, bool allowSleep ) : void
profile Profile
step TimeStep
gravity Box2D.Common.Vec2
allowSleep bool
return void

SolveToi() public method

public SolveToi ( TimeStep subStep, int toiIndexA, int toiIndexB ) : void
subStep TimeStep
toiIndexA int
toiIndexB int
return void

Property Details

Bodies public_oe property

public Body[],Box2D.Dynamics Bodies
return Box2D.Dynamics.Body[]

BodyCapacity public_oe property

public int BodyCapacity
return int

BodyCount public_oe property

public int BodyCount
return int

ContactCapacity public_oe property

public int ContactCapacity
return int

ContactCount public_oe property

public int ContactCount
return int

Contacts public_oe property

public Contact[],Box2D.Dynamics.Contacts Contacts
return Box2D.Dynamics.Contacts.Contact[]

JointCapacity public_oe property

public int JointCapacity
return int

JointCount public_oe property

public int JointCount
return int

Joints public_oe property

public Joint[],Box2D.Dynamics.Joints Joints
return Box2D.Dynamics.Joints.Joint[]

Listener public_oe property

public IContactListener Listener
return IContactListener

Positions public_oe property

public Position[],Box2D.Dynamics.Contacts Positions
return Box2D.Dynamics.Contacts.Position[]

Velocities public_oe property

public Velocity[],Box2D.Dynamics.Contacts Velocities
return Box2D.Dynamics.Contacts.Velocity[]