main page classes files - documentation & help · box2d class list here are the classes,...

434
Main Page Classes Files

Upload: others

Post on 21-Aug-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

Page 2: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Box2DAPIDocumentation2.0.1

Page 3: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

GettingStarted

Fortutorialspleaseseehttp://www.box2d.org/manual.html

Fordiscussionpleasevisithttp://www.box2d.org/forum

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 4: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 5: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Box2DClassListHerearetheclasses,structs,unionsandinterfaceswithbriefdescriptions:b2AABB Anaxisalignedboundingbox

b2Body Arigidbody

b2BodyDef Abodydefinitionholdsallthedataneededtoconstructarigidbody

b2BoundaryListener Thisiscalledwhenabody'sshapepassesoutsideoftheworldboundary

b2CircleDef Thisstructureisusedtobuildcircleshapes

b2CircleShape Acircleshape

b2Color Colorfordebugdrawing.Eachvaluehastherange[0,1]

b2Contact Theclassmanagescontactbetweentwoshapes

b2ContactEdgeAcontactedgeisusedtoconnectbodiesandcontactstogetherinacontactgraphwhereeachbodyisanodeandeachcontactisanedge

b2ContactFilter Implementthisclasstoprovidecollisionfiltering

b2ContactID Contactidstofacilitatewarmstarting

b2ContactID::Features Thefeaturesthatintersecttoformthecontactpoint

b2ContactListener Implementthisclasstogetcollisionresults

b2ContactPoint Thisstructureisusedtoreportcontactpoints

b2ContactResult Thisstructureisusedtoreportcontactpointresults

b2DebugDraw Implementandregisterthisclasswithab2Worldtoprovidedebugdrawingofphysicsentitiesinyourgame

b2DestructionListener Jointsandshapesaredestroyedwhentheirassociatedbodyisdestroyed

b2DistanceJoint Adistancejointconstrainstwopointsontwobodiestoremainatafixeddistancefromeachother

b2DistanceJointDef Distancejointdefinition

b2FilterData Thisholdscontactfilteringdata

b2GearJoint Agearjointisusedtoconnecttwojointstogether

b2GearJointDef Gearjointdefinition

b2Joint Thebasejointclass

b2JointDef Jointdefinitionsareusedtoconstructjoints

b2JointEdge Ajointedgeisusedtoconnectbodiesandjointstogetherinajointgraphwhereeachbodyisanodeandeachjointisanedge

b2Manifold Amanifoldfortwotouchingconvexshapes

Page 6: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ManifoldPoint Amanifoldpointisacontactpointbelongingtoacontactmanifold

b2MassData Thisholdsthemassdatacomputedforashape

b2Mat22 A2-by-2matrix.Storedincolumn-majororder

b2MouseJoint Amousejointisusedtomakeapointonabodytrackaspecifiedworldpoint

b2MouseJointDef Mousejointdefinition

b2OBB Anorientedboundingbox

b2PolygonDef Convexpolygon

b2PolygonShape Aconvexpolygon

b2PrismaticJoint Aprismaticjoint

b2PrismaticJointDef Prismaticjointdefinition

b2PulleyJoint Thepulleyjointisconnectedtotwobodiesandtwofixedgroundpoints

b2PulleyJointDef Pulleyjointdefinition

b2RevoluteJoint Arevolutejointconstrainstobodiestoshareacommonpointwhiletheyarefreetorotateaboutthepoint

b2RevoluteJointDef Revolutejointdefinition

b2Segment Alinesegment

b2Shape Ashapeisusedforcollisiondetection

b2ShapeDef Ashapedefinitionisusedtoconstructashape

b2Sweep Thisdescribesthemotionofabody/shapeforTOIcomputation

b2Vec2 A2Dcolumnvector

b2Version Versionnumberingscheme

b2World Theworldclassmanagesallphysicsentities,dynamicsimulation,andasynchronousqueries

b2XForm Atransformcontainstranslationandrotation

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 7: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 8: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2AABBStructReferenceAnaxisalignedboundingbox.More...

Listofallmembers.

Page 9: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

bool IsValid()const Verifythattheboundsaresorted.

Page 10: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Vec2 lowerBound thelowervertex

b2Vec2 upperBound theuppervertex

Page 11: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Anaxisalignedboundingbox.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Collision.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 12: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 13: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2BodyClassReferenceArigidbody.More...

Listofallmembers.

Page 14: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

b2Shape* CreateShape(b2ShapeDef*shapeDef) Createsashapeandattachittothisbody.

void DestroyShape(b2Shape*shape) Destroyashape.

void SetMass(constb2MassData*massData) Setthemassproperties.

void SetMassFromShapes() Computethemasspropertiesfromtheattachedshapes.

bool SetXForm(constb2Vec2&position,float32angle) Setthepositionofthebody'soriginandrotation(radians).

constb2XForm& GetXForm()const Getthebodytransformforthebody'sorigin.

constb2Vec2& GetPosition()const Gettheworldbodyoriginposition.

float32 GetAngle()const Gettheangleinradians.

constb2Vec2& GetWorldCenter()const Gettheworldpositionofthecenterofmass.

constb2Vec2& GetLocalCenter()const Getthelocalpositionofthecenterofmass.

void SetLinearVelocity(constb2Vec2&v) Setthelinearvelocityofthecenterofmass.

b2Vec2 GetLinearVelocity()const Getthelinearvelocityofthecenterofmass.

void SetAngularVelocity(float32omega) Settheangularvelocity.

float32 GetAngularVelocity()const Gettheangularvelocity.

void ApplyForce(constb2Vec2&force,constb2Vec2&point) Applyaforceataworldpoint.

void ApplyTorque(float32torque) Applyatorque.

void ApplyImpulse(constb2Vec2&impulse,constb2Vec2&point) Applyanimpulseatapoint.

float32 GetMass()const Getthetotalmassofthebody.

Page 15: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

float32 GetInertia()const Getthecentralrotationalinertiaofthebody.

b2Vec2 GetWorldPoint(constb2Vec2&localPoint)const Gettheworldcoordinatesofapointgiventhelocalcoordinates.

b2Vec2 GetWorldVector(constb2Vec2&localVector)const Gettheworldcoordinatesofavectorgiventhelocalcoordinates.

b2Vec2 GetLocalPoint(constb2Vec2&worldPoint)const Getsalocalpointrelativetothebody'sorigingivenaworldpoint.

b2Vec2 GetLocalVector(constb2Vec2&worldVector)const Getsalocalvectorgivenaworldvector.

b2Vec2 GetLinearVelocityFromWorldPoint(constb2Vec2&worldPoint)const Gettheworldlinearvelocityofaworldpointattachedtothisbody.

b2Vec2 GetLinearVelocityFromLocalPoint(constb2Vec2&localPoint)const Gettheworldvelocityofalocalpoint.

bool IsBullet()const Isthisbodytreatedlikeabulletforcontinuouscollisiondetection?

void SetBullet(boolflag) Shouldthisbodybetreatedlikeabulletforcontinuouscollisiondetection?

bool IsStatic()const Isthisbodystatic(immovable)?

bool IsDynamic()const Isthisbodydynamic(movable)?

bool IsFrozen()const Isthisbodyfrozen?

bool IsSleeping()const Isthisbodysleeping(notsimulating).

void AllowSleeping(boolflag) Youcandisablesleepingonthisbody.

void WakeUp() Wakeupthisbodysoitwillbeginsimulating.

void PutToSleep() Putthisbodytosleepsoitwillstopsimulating.

b2Shape* GetShapeList() Getthelistofallshapesattachedtothisbody.

b2JointEdge* GetJointList() Getthelistofalljointsattachedtothisbody.

b2Body* GetNext() Getthenextbodyintheworld'sbodylist.

void* GetUserData() Gettheuserdatapointerthatwasprovidedinthebodydefinition.

void SetUserData(void*data)

Page 16: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Settheuserdata.Usethistostoreyourapplicationspecificdata.

b2World* GetWorld() Gettheparentworldofthisbody.

Page 17: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Friends

class b2Worldclass b2DistanceJointclass b2GearJointclass b2MouseJointclass b2PrismaticJointclass b2PulleyJointclass b2RevoluteJoint

Page 18: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Arigidbody.

Page 19: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

b2Shape*b2Body::CreateShape ( b2ShapeDef* shapeDef )

Createsashapeandattachittothisbody.

Parameters:shapeDef theshapedefinition.

Warning:Thisfunctionislockedduringcallbacks.

voidb2Body::DestroyShape ( b2Shape* shape )

Destroyashape.

Thisremovestheshapefromthebroad-phaseandthereforedestroysanycontactsassociatedwiththisshape.Allshapesattachedtoabodyareimplicitlydestroyedwhenthebodyisdestroyed.

Parameters:shape theshapetoberemoved.

Warning:Thisfunctionislockedduringcallbacks.

voidb2Body::SetMass ( constb2MassData* massData )

Setthemassproperties.

Notethatthischangesthecenterofmassposition.Ifyouarenotsurehowtocomputemassproperties,useSetMassFromShapes.Theinertiatensorisassumedtoberelativetothecenterofmass.

Parameters:massData themassproperties.

Page 20: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

voidb2Body::SetMassFromShapes ( )

Computethemasspropertiesfromtheattachedshapes.

Youtypicallycallthisafteraddingalltheshapes.Ifyouaddorremoveshapeslater,youmaywanttocallthisagain.Notethatthischangesthecenterofmassposition.

boolb2Body::SetXForm ( constb2Vec2& position,float32 angle

)

Setthepositionofthebody'soriginandrotation(radians).

Thisbreaksanycontactsandwakestheotherbodies.

Parameters:position thenewworldpositionofthebody'sorigin(notnecessarilythecenterofmass).angle thenewworldrotationangleofthebodyinradians.

Returns:falseifthemovementputashapeoutsidetheworld.Inthiscasethebodyisautomaticallyfrozen.

constb2XForm&b2Body::GetXForm ( ) const[inline]

Getthebodytransformforthebody'sorigin.

Returns:theworldtransformofthebody'sorigin.

constb2Vec2&b2Body::GetPosition ( ) const[inline]

Gettheworldbodyoriginposition.

Page 21: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Returns:theworldpositionofthebody'sorigin.

float32b2Body::GetAngle ( ) const[inline]

Gettheangleinradians.

Returns:thecurrentworldrotationangleinradians.

voidb2Body::SetLinearVelocity ( constb2Vec2& v ) [inline]

Setthelinearvelocityofthecenterofmass.

Parameters:v thenewlinearvelocityofthecenterofmass.

b2Vec2b2Body::GetLinearVelocity ( ) const[inline]

Getthelinearvelocityofthecenterofmass.

Returns:thelinearvelocityofthecenterofmass.

voidb2Body::SetAngularVelocity ( float32 omega ) [inline]

Settheangularvelocity.

Parameters:omega thenewangularvelocityinradians/second.

float32b2Body::GetAngularVelocity ( ) const[inline]

Page 22: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Gettheangularvelocity.

Returns:theangularvelocityinradians/second.

voidb2Body::ApplyForce ( constb2Vec2& force,constb2Vec2& point

) [inline]

Applyaforceataworldpoint.

Iftheforceisnotappliedatthecenterofmass,itwillgenerateatorqueandaffecttheangularvelocity.Thiswakesupthebody.

Parameters:force theworldforcevector,usuallyinNewtons(N).point theworldpositionofthepointofapplication.

voidb2Body::ApplyTorque ( float32 torque ) [inline]

Applyatorque.

Thisaffectstheangularvelocitywithoutaffectingthelinearvelocityofthecenterofmass.Thiswakesupthebody.

Parameters:torque aboutthez-axis(outofthescreen),usuallyinN-m.

voidb2Body::ApplyImpulse ( constb2Vec2& impulse,constb2Vec2& point

) [inline]

Applyanimpulseatapoint.

Thisimmediatelymodifiesthevelocity.Italsomodifiestheangularvelocityifthepointofapplicationisnotatthecenterofmass.This

Page 23: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

wakesupthebody.

Parameters:impulse theworldimpulsevector,usuallyinN-secondsorkg-m/s.point theworldpositionofthepointofapplication.

float32b2Body::GetMass ( ) const[inline]

Getthetotalmassofthebody.

Returns:themass,usuallyinkilograms(kg).

float32b2Body::GetInertia ( ) const[inline]

Getthecentralrotationalinertiaofthebody.

Returns:therotationalinertia,usuallyinkg-m^2.

b2Vec2b2Body::GetWorldPoint ( constb2Vec2& localPoint ) const[inline]

Gettheworldcoordinatesofapointgiventhelocalcoordinates.

Parameters:localPoint apointonthebodymeasuredrelativethethebody'sorigin.

Returns:thesamepointexpressedinworldcoordinates.

b2Vec2b2Body::GetWorldVector ( constb2Vec2& localVector ) const[inline]

Gettheworldcoordinatesofavectorgiventhelocalcoordinates.

Parameters:

Page 24: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

localVector avectorfixedinthebody.

Returns:thesamevectorexpressedinworldcoordinates.

b2Vec2b2Body::GetLocalPoint ( constb2Vec2& worldPoint ) const[inline]

Getsalocalpointrelativetothebody'sorigingivenaworldpoint.

Parameters:a pointinworldcoordinates.

Returns:thecorrespondinglocalpointrelativetothebody'sorigin.

b2Vec2b2Body::GetLocalVector ( constb2Vec2& worldVector ) const[inline]

Getsalocalvectorgivenaworldvector.

Parameters:a vectorinworldcoordinates.

Returns:thecorrespondinglocalvector.

b2Vec2b2Body::GetLinearVelocityFromWorldPoint ( constb2Vec2& worldPoint ) const[inline]

Gettheworldlinearvelocityofaworldpointattachedtothisbody.

Parameters:a pointinworldcoordinates.

Returns:theworldvelocityofapoint.

Page 25: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2Vec2b2Body::GetLinearVelocityFromLocalPoint ( constb2Vec2& localPoint ) const[inline]

Gettheworldvelocityofalocalpoint.

Parameters:a pointinlocalcoordinates.

Returns:theworldvelocityofapoint.

voidb2Body::PutToSleep ( ) [inline]

Putthisbodytosleepsoitwillstopsimulating.

Thisalsosetsthevelocitytozero.

Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:

b2Body.hb2Body.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 26: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 27: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2BodyDefStructReferenceAbodydefinitionholdsallthedataneededtoconstructarigidbody.More...

Listofallmembers.

Page 28: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

b2BodyDef() Thisconstructorsetsthebodydefinitiondefaultvalues.

Page 29: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2MassData massData Youcanusethistoinitializedthemasspropertiesofthebody.

void* userData Usethistostoreapplicationspecificbodydata.

b2Vec2 position Theworldpositionofthebody.

float32 angle Theworldangleofthebodyinradians.

float32 linearDamping Lineardampingisusetoreducethelinearvelocity.

float32 angularDamping Angulardampingisusetoreducetheangularvelocity.

bool allowSleep Setthisflagtofalseifthisbodyshouldneverfallasleep.

bool isSleeping Isthisbodyinitiallysleeping?

bool fixedRotation Shouldthisbodybepreventedfromrotating?Usefulforcharacters.

bool isBullet

Isthisafastmovingbodythatshouldbepreventedfromtunnelingthroughothermovingbodies?Notethatallbodiesarepreventedfromtunnelingthroughstaticbodies.

Page 30: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Abodydefinitionholdsallthedataneededtoconstructarigidbody.

Youcansafelyre-usebodydefinitions.

Page 31: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberDataDocumentation

b2MassDatab2BodyDef::massData

Youcanusethistoinitializedthemasspropertiesofthebody.

Ifyouprefer,youcansetthemasspropertiesaftertheshapeshavebeenaddedusingb2Body::SetMassFromShapes.

b2Vec2b2BodyDef::position

Theworldpositionofthebody.

Avoidcreatingbodiesattheoriginsincethiscanleadtomanyoverlappingshapes.

float32b2BodyDef::linearDamping

Lineardampingisusetoreducethelinearvelocity.

Thedampingparametercanbelargerthan1.0fbutthedampingeffectbecomessensitivetothetimestepwhenthedampingparameterislarge.

float32b2BodyDef::angularDamping

Angulardampingisusetoreducetheangularvelocity.

Thedampingparametercanbelargerthan1.0fbutthedampingeffectbecomessensitivetothetimestepwhenthedampingparameterislarge.

boolb2BodyDef::allowSleep

Page 32: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Setthisflagtofalseifthisbodyshouldneverfallasleep.

NotethatthisincreasesCPUusage.

boolb2BodyDef::isBullet

Isthisafastmovingbodythatshouldbepreventedfromtunnelingthroughothermovingbodies?Notethatallbodiesarepreventedfromtunnelingthroughstaticbodies.

Warning:Youshouldusethisflagsparinglysinceitincreasesprocessingtime.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Body.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 33: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 34: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2BoundaryListenerClassReferenceThisiscalledwhenabody'sshapepassesoutsideoftheworldboundary.More...

Listofallmembers.

Page 35: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

virtualvoid Violation(b2Body*body)=0 Thisiscalledforeachbodythatleavestheworldboundary.

Page 36: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Thisiscalledwhenabody'sshapepassesoutsideoftheworldboundary.

Page 37: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

virtualvoidb2BoundaryListener::Violation ( b2Body* body ) [purevirtual]

Thisiscalledforeachbodythatleavestheworldboundary.

Warning:youcan'tmodifytheworldinsidethiscallback.

Thedocumentationforthisclasswasgeneratedfromthefollowingfile:

b2WorldCallbacks.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 38: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 39: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2CircleDefStructReferenceThisstructureisusedtobuildcircleshapes.More...

Inheritancediagramforb2CircleDef:

Listofallmembers.

Page 40: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Thisstructureisusedtobuildcircleshapes.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2CircleShape.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 41: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 42: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2CircleShapeClassReferenceAcircleshape.More...

Inheritancediagramforb2CircleShape:

Listofallmembers.

Page 43: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

bool TestPoint(constb2XForm&transform,constb2Vec2&p)const

Seealso:

b2Shape::TestPoint

bool TestSegment(constb2XForm&transform,float32*lambda,b2Vec2*normal,constb2Segment&segment,float32maxLambda)const

Seealso:

b2Shape::TestSegment

void ComputeAABB(b2AABB*aabb,constb2XForm&transform)const

Seealso:

b2Shape::ComputeAABB

void ComputeSweptAABB(b2AABB*aabb,constb2XForm&transform1,constb2XForm&transform2)const

Seealso:

b2Shape::ComputeSweptAABB

void ComputeMass(b2MassData*massData)const

Seealso:

b2Shape::ComputeMass

constb2Vec2& GetLocalPosition()const Getthelocalpositionofthiscircleinitsparentbody.

float32 GetRadius()const Gettheradiusofthiscircle.

Page 44: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Friends

class b2Shape

Page 45: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Acircleshape.

Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:

b2CircleShape.hb2CircleShape.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 46: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 47: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ColorStructReferenceColorfordebugdrawing.Eachvaluehastherange[0,1].More...

Listofallmembers.

Page 48: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Colorfordebugdrawing.Eachvaluehastherange[0,1].

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2WorldCallbacks.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 49: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 50: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactClassReferenceTheclassmanagescontactbetweentwoshapes.More...

Inheritedbyb2CircleContact,b2NullContact,b2PolyAndCircleContact,andb2PolygonContact.

Listofallmembers.

Page 51: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

virtualb2Manifold* GetManifolds()=0 Getthemanifoldarray.

int32 GetManifoldCount()const Getthenumberofmanifolds.

bool IsSolid()const Isthiscontactsolid?

b2Contact* GetNext() Getthenextcontactintheworld'scontactlist.

b2Shape* GetShape1() Getthefirstshapeinthiscontact.

b2Shape* GetShape2() Getthesecondshapeinthiscontact.

Page 52: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Theclassmanagescontactbetweentwoshapes.

AcontactexistsforeachoverlappingAABBinthebroad-phase(exceptiffiltered).Thereforeacontactobjectmayexistthathasnocontactpoints.

Page 53: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

int32b2Contact::GetManifoldCount ( ) const[inline]

Getthenumberofmanifolds.

Thisis0or1betweenconvexshapes.Thismaybegreaterthan1forconvex-vs-concaveshapes.Eachmanifoldholdsuptotwocontactpointswithasharedcontactnormal.

boolb2Contact::IsSolid ( ) const[inline]

Isthiscontactsolid?

Returns:trueifthiscontactshouldgeneratearesponse.

Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:

b2Contact.hb2Contact.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 54: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 55: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactEdgeStructReferenceAcontactedgeisusedtoconnectbodiesandcontactstogetherinacontactgraphwhereeachbodyisanodeandeachcontactisanedge.More...

Listofallmembers.

Page 56: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Body* other providesquickaccesstotheotherbodyattached.

b2Contact* contact thecontact

b2ContactEdge* prev thepreviouscontactedgeinthebody'scontactlist

b2ContactEdge* next thenextcontactedgeinthebody'scontactlist

Page 57: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Acontactedgeisusedtoconnectbodiesandcontactstogetherinacontactgraphwhereeachbodyisanodeandeachcontactisanedge.

Acontactedgebelongstoadoublylinkedlistmaintainedineachattachedbody.Eachcontacthastwocontactnodes,oneforeachattachedbody.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Contact.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 58: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 59: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactFilterClassReferenceImplementthisclasstoprovidecollisionfiltering.More...

Listofallmembers.

Page 60: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

virtualbool ShouldCollide(b2Shape*shape1,b2Shape*shape2)

Returntrueifcontactcalculationsshouldbeperformedbetweenthesetwoshapes.

Page 61: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Implementthisclasstoprovidecollisionfiltering.

Inotherwords,youcanimplementthisclassifyouwantfinercontrolovercontactcreation.

Page 62: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

boolb2ContactFilter::ShouldCollide ( b2Shape* shape1,b2Shape* shape2

) [virtual]

Returntrueifcontactcalculationsshouldbeperformedbetweenthesetwoshapes.

Warning:forperformancereasonsthisisonlycalledwhentheAABBsbegintooverlap.

Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:

b2WorldCallbacks.hb2WorldCallbacks.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 63: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 64: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactIDUnionReferenceContactidstofacilitatewarmstarting.More...

Listofallmembers.

Page 65: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

uint32 key Usedtoquicklycomparecontactids.

Page 66: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Classes

struct Features Thefeaturesthatintersecttoformthecontactpoint.More...

Page 67: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Contactidstofacilitatewarmstarting.

Thedocumentationforthisunionwasgeneratedfromthefollowingfile:

b2Collision.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 68: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

b2ContactID::Features

Page 69: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactID::FeaturesStructReferenceThefeaturesthatintersecttoformthecontactpoint.More...

Listofallmembers.

Page 70: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

uint8 referenceEdge Theedgethatdefinestheoutwardcontactnormal.

uint8 incidentEdge Theedgemostanti-paralleltothereferenceedge.

uint8 incidentVertex Thevertex(0or1)ontheincidentedgethatwasclipped.

uint8 flip Avalueof1indicatesthatthereferenceedgeisonshape2.

Page 71: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Thefeaturesthatintersecttoformthecontactpoint.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Collision.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 72: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 73: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactListenerClassReferenceImplementthisclasstogetcollisionresults.More...

Listofallmembers.

Page 74: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

virtualvoid Add(constb2ContactPoint*point) Calledwhenacontactpointisadded.

virtualvoid Persist(constb2ContactPoint*point) Calledwhenacontactpointpersists.

virtualvoid Remove(constb2ContactPoint*point) Calledwhenacontactpointisremoved.

virtualvoid Result(constb2ContactResult*point) Calledafteracontactpointissolved.

Page 75: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Implementthisclasstogetcollisionresults.

Youcanusetheseresultsforthingslikesoundsandgamelogic.Youcanalsogetcontactresultsbytraversingthecontactlistsafterthetimestep.However,youmightmisssomecontactsbecausecontinuousphysicsleadstosub-stepping.Additionallyyoumayreceivemultiplecallbacksforthesamecontactinasingletimestep.Youshouldstrivetomakeyourcallbacksefficientbecausetheremaybemanycallbackspertimestep.

Warning:Thecontactseparationisthelastcomputedvalue.

Youcannotcreate/destroyBox2Dentitiesinsidethesecallbacks.

Page 76: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

virtualvoidb2ContactListener::Add ( constb2ContactPoint* point ) [inline,virtual]

Calledwhenacontactpointisadded.

Thisincludesthegeometryandtheforces.

virtualvoidb2ContactListener::Persist ( constb2ContactPoint* point ) [inline,virtual]

Calledwhenacontactpointpersists.

Thisincludesthegeometryandtheforces.

virtualvoidb2ContactListener::Remove ( constb2ContactPoint* point ) [inline,virtual]

Calledwhenacontactpointisremoved.

Thisincludesthelastcomputedgeometryandforces.

Thedocumentationforthisclasswasgeneratedfromthefollowingfile:

b2WorldCallbacks.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 77: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 78: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactPointStructReferenceThisstructureisusedtoreportcontactpoints.More...

Listofallmembers.

Page 79: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Shape* shape1 thefirstshape

b2Shape* shape2 thesecondshape

b2Vec2 position positioninworldcoordinates

b2Vec2 velocity velocityofpointonbody2relativetopointonbody1(pre-solver)

b2Vec2 normal pointsfromshape1toshape2

float32 separation theseparationisnegativewhenshapesaretouching

float32 friction thecombinedfrictioncoefficient

float32 restitution thecombinedrestitutioncoefficient

b2ContactID id thecontactididentifiesthefeaturesincontact

Page 80: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Thisstructureisusedtoreportcontactpoints.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Contact.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 81: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 82: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactResultStructReferenceThisstructureisusedtoreportcontactpointresults.More...

Listofallmembers.

Page 83: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Shape* shape1 thefirstshape

b2Shape* shape2 thesecondshape

b2Vec2 position positioninworldcoordinates

b2Vec2 normal pointsfromshape1toshape2

float32 normalImpulse thenormalimpulseappliedtobody2

float32 tangentImpulse thetangentimpulseappliedtobody2

b2ContactID id thecontactididentifiesthefeaturesincontact

Page 84: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Thisstructureisusedtoreportcontactpointresults.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Contact.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 85: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 86: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2DebugDrawClassReferenceImplementandregisterthisclasswithab2Worldtoprovidedebugdrawingofphysicsentitiesinyourgame.More...

Listofallmembers.

Page 87: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicTypes

enum

{e_shapeBit=0x0001,e_jointBit=0x0002,e_coreShapeBit=0x0004,e_aabbBit=0x0008,e_obbBit=0x0010,e_pairBit=0x0020,e_centerOfMassBit=0x0040}

Page 88: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

void SetFlags(uint32flags) Setthedrawingflags.

uint32 GetFlags()const Getthedrawingflags.

void AppendFlags(uint32flags) Appendflagstothecurrentflags.

void ClearFlags(uint32flags) Clearflagsfromthecurrentflags.

virtualvoid DrawPolygon(constb2Vec2*vertices,int32vertexCount,constb2Color&color)=0

DrawaclosedpolygonprovidedinCCWorder.

virtualvoid DrawSolidPolygon(constb2Vec2*vertices,int32vertexCount,constb2Color&color)=0

DrawasolidclosedpolygonprovidedinCCWorder.

virtualvoid DrawCircle(constb2Vec2&center,float32radius,constb2Color&color)=0 Drawacircle.

virtualvoid DrawSolidCircle(constb2Vec2&center,float32radius,constb2Vec2&axis,constb2Color&color)=0

Drawasolidcircle.

virtualvoid DrawSegment(constb2Vec2&p1,constb2Vec2&p2,constb2Color&color)=0 Drawalinesegment.

virtualvoid DrawXForm(constb2XForm&xf)=0 Drawatransform.

Page 89: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Implementandregisterthisclasswithab2Worldtoprovidedebugdrawingofphysicsentitiesinyourgame.

Page 90: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberEnumerationDocumentation

anonymousenum

Enumerator:e_shapeBit drawshapese_jointBit drawjointconnectionse_coreShapeBit drawcore(TOI)shapese_aabbBit drawaxisalignedboundingboxese_obbBit draworientedboundingboxese_pairBit drawbroad-phasepairse_centerOfMassBit drawcenterofmassframe

Page 91: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

virtualvoidb2DebugDraw::DrawXForm ( constb2XForm& xf ) [purevirtual]

Drawatransform.

Chooseyourownlengthscale.

Parameters:xf atransform.

Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:

b2WorldCallbacks.hb2WorldCallbacks.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 92: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 93: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2DestructionListenerClassReferenceJointsandshapesaredestroyedwhentheirassociatedbodyisdestroyed.More...

Listofallmembers.

Page 94: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

virtualvoid SayGoodbye(b2Joint*joint)=0

Calledwhenanyjointisabouttobedestroyedduetothedestructionofoneofitsattachedbodies.

virtualvoid SayGoodbye(b2Shape*shape)=0

Calledwhenanyshapeisabouttobedestroyedduetothedestructionofitsparentbody.

Page 95: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Jointsandshapesaredestroyedwhentheirassociatedbodyisdestroyed.

Implementthislistenersothatyoumaynullifyreferencestothesejointsandshapes.

Page 96: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

virtualvoidb2DestructionListener::SayGoodbye ( b2Joint* joint ) [purevirtual]

Calledwhenanyjointisabouttobedestroyedduetothedestructionofoneofitsattachedbodies.

virtualvoidb2DestructionListener::SayGoodbye ( b2Shape* shape ) [purevirtual]

Calledwhenanyshapeisabouttobedestroyedduetothedestructionofitsparentbody.

Thedocumentationforthisclasswasgeneratedfromthefollowingfile:

b2WorldCallbacks.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 97: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 98: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2DistanceJointClassReferenceAdistancejointconstrainstwopointsontwobodiestoremainatafixeddistancefromeachother.More...

Inheritancediagramforb2DistanceJoint:

Listofallmembers.

Page 99: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

b2Vec2 GetAnchor1()const Gettheanchorpointonbody1inworldcoordinates.

b2Vec2 GetAnchor2()const Gettheanchorpointonbody2inworldcoordinates.

b2Vec2 GetReactionForce()const Getthereactionforceonbody2atthejointanchor.

float32 GetReactionTorque()const Getthereactiontorqueonbody2.

Page 100: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Adistancejointconstrainstwopointsontwobodiestoremainatafixeddistancefromeachother.

Youcanviewthisasamassless,rigidrod.

Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:

b2DistanceJoint.hb2DistanceJoint.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 101: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 102: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2DistanceJointDefStructReferenceDistancejointdefinition.More...

Inheritancediagramforb2DistanceJointDef:

Listofallmembers.

Page 103: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

void Initialize(b2Body*body1,b2Body*body2,constb2Vec2&anchor1,constb2Vec2&anchor2)

Initializethebodies,anchors,andlengthusingtheworldanchors.

Page 104: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Vec2 localAnchor1 Thelocalanchorpointrelativetobody1'sorigin.

b2Vec2 localAnchor2 Thelocalanchorpointrelativetobody2'sorigin.

float32 length Theequilibriumlengthbetweentheanchorpoints.

float32 frequencyHz Theresponsespeed.

float32 dampingRatio Thedampingratio.0=nodamping,1=criticaldamping.

Page 105: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Distancejointdefinition.

Thisrequiresdefiningananchorpointonbothbodiesandthenon-zerolengthofthedistancejoint.Thedefinitionuseslocalanchorpointssothattheinitialconfigurationcanviolatetheconstraintslightly.Thishelpswhensavingandloadingagame.

Warning:Donotuseazeroorshortlength.

Page 106: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

voidb2DistanceJointDef::Initialize ( b2Body* body1,b2Body* body2,constb2Vec2& anchor1,constb2Vec2& anchor2

)

Initializethebodies,anchors,andlengthusingtheworldanchors.

Thedocumentationforthisstructwasgeneratedfromthefollowingfiles:

b2DistanceJoint.hb2DistanceJoint.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 107: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 108: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2FilterDataStructReferenceThisholdscontactfilteringdata.More...

Listofallmembers.

Page 109: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

uint16 categoryBits Thecollisioncategorybits.Normallyyouwouldjustsetonebit.

uint16 maskBits Thecollisionmaskbits.

int16 groupIndex

Collisiongroupsallowacertaingroupofobjectstonevercollide(negative)oralwayscollide(positive).

Page 110: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Thisholdscontactfilteringdata.

Page 111: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberDataDocumentation

uint16b2FilterData::maskBits

Thecollisionmaskbits.

Thisstatesthecategoriesthatthisshapewouldacceptforcollision.

int16b2FilterData::groupIndex

Collisiongroupsallowacertaingroupofobjectstonevercollide(negative)oralwayscollide(positive).

Zeromeansnocollisiongroup.Non-zerogroupfilteringalwayswinsagainstthemaskbits.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Shape.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 112: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 113: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2GearJointClassReferenceAgearjointisusedtoconnecttwojointstogether.More...

Inheritancediagramforb2GearJoint:

Listofallmembers.

Page 114: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

b2Vec2 GetAnchor1()const Gettheanchorpointonbody1inworldcoordinates.

b2Vec2 GetAnchor2()const Gettheanchorpointonbody2inworldcoordinates.

b2Vec2 GetReactionForce()const Getthereactionforceonbody2atthejointanchor.

float32 GetReactionTorque()const Getthereactiontorqueonbody2.

float32 GetRatio()const Getthegearratio.

Page 115: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Agearjointisusedtoconnecttwojointstogether.

Eitherjointcanbearevoluteorprismaticjoint.Youspecifyagearratiotobindthemotionstogether:coordinate1+ratio*coordinate2=constantTheratiocanbenegativeorpositive.Ifonejointisarevolutejointandtheotherjointisaprismaticjoint,thentheratiowillhaveunitsoflengthorunitsof1/length.

Warning:Therevoluteandprismaticjointsmustbeattachedtofixedbodies(whichmustbebody1onthosejoints).

Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:

b2GearJoint.hb2GearJoint.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 116: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 117: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2GearJointDefStructReferenceGearjointdefinition.More...

Inheritancediagramforb2GearJointDef:

Listofallmembers.

Page 118: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Joint* joint1 Thefirstrevolute/prismaticjointattachedtothegearjoint.

b2Joint* joint2 Thesecondrevolute/prismaticjointattachedtothegearjoint.

float32 ratio Thegearratio.

Page 119: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Gearjointdefinition.

Thisdefinitionrequirestwoexistingrevoluteorprismaticjoints(anycombinationwillwork).Theprovidedjointsmustattachadynamicbodytoastaticbody.

Page 120: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberDataDocumentation

float32b2GearJointDef::ratio

Thegearratio.

Seealso:b2GearJointforexplanation.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2GearJoint.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 121: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 122: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2JointClassReferenceThebasejointclass.More...

Inheritancediagramforb2Joint:

Listofallmembers.

Page 123: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

b2JointType GetType()const Getthetypeoftheconcretejoint.

b2Body* GetBody1() Getthefirstbodyattachedtothisjoint.

b2Body* GetBody2() Getthesecondbodyattachedtothisjoint.

virtualb2Vec2 GetAnchor1()const=0 Gettheanchorpointonbody1inworldcoordinates.

virtualb2Vec2 GetAnchor2()const=0 Gettheanchorpointonbody2inworldcoordinates.

virtualb2Vec2 GetReactionForce()const=0 Getthereactionforceonbody2atthejointanchor.

virtualfloat32 GetReactionTorque()const=0 Getthereactiontorqueonbody2.

b2Joint* GetNext() Getthenextjointtheworldjointlist.

void* GetUserData() Gettheuserdatapointer.

void SetUserData(void*data) Settheuserdatapointer.

Page 124: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Friends

class b2Worldclass b2Body

Page 125: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Thebasejointclass.

Jointsareusedtoconstrainttwobodiestogetherinvariousfashions.Somejointsalsofeaturelimitsandmotors.

Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:

b2Joint.hb2Joint.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 126: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 127: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2JointDefStructReferenceJointdefinitionsareusedtoconstructjoints.More...

Inheritancediagramforb2JointDef:

Listofallmembers.

Page 128: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2JointType type Thejointtypeissetautomaticallyforconcretejointtypes.

void* userData Usethistoattachapplicationspecificdatatoyourjoints.

b2Body* body1 Thefirstattachedbody.

b2Body* body2 Thesecondattachedbody.

bool collideConnected Setthisflagtotrueiftheattachedbodiesshouldcollide.

Page 129: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Jointdefinitionsareusedtoconstructjoints.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Joint.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 130: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 131: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2JointEdgeStructReferenceAjointedgeisusedtoconnectbodiesandjointstogetherinajointgraphwhereeachbodyisanodeandeachjointisanedge.More...

Listofallmembers.

Page 132: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Body* other providesquickaccesstotheotherbodyattached.

b2Joint* joint thejoint

b2JointEdge* prev thepreviousjointedgeinthebody'sjointlist

b2JointEdge* next thenextjointedgeinthebody'sjointlist

Page 133: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Ajointedgeisusedtoconnectbodiesandjointstogetherinajointgraphwhereeachbodyisanodeandeachjointisanedge.

Ajointedgebelongstoadoublylinkedlistmaintainedineachattachedbody.Eachjointhastwojointnodes,oneforeachattachedbody.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Joint.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 134: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 135: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ManifoldStructReferenceAmanifoldfortwotouchingconvexshapes.More...

Listofallmembers.

Page 136: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2ManifoldPoint points[b2_maxManifoldPoints] thepointsofcontact

b2Vec2 normal thesharedunitnormalvector

int32 pointCount thenumberofmanifoldpoints

Page 137: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Amanifoldfortwotouchingconvexshapes.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Collision.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 138: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 139: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ManifoldPointStructReferenceAmanifoldpointisacontactpointbelongingtoacontactmanifold.More...

Listofallmembers.

Page 140: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Vec2 localPoint1 localpositionofthecontactpointinbody1

b2Vec2 localPoint2 localpositionofthecontactpointinbody2

float32 separation theseparationoftheshapesalongthenormalvector

float32 normalImpulse thenon-penetrationimpulse

float32 tangentImpulse thefrictionimpulse

b2ContactID id uniquelyidentifiesacontactpointbetweentwoshapes

Page 141: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Amanifoldpointisacontactpointbelongingtoacontactmanifold.

Itholdsdetailsrelatedtothegeometryanddynamicsofthecontactpoints.ThepointisstoredinlocalcoordinatesbecauseCCDrequiressub-steppinginwhichtheseparationisstale.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Collision.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 142: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 143: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2MassDataStructReferenceThisholdsthemassdatacomputedforashape.More...

Listofallmembers.

Page 144: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

float32 mass Themassoftheshape,usuallyinkilograms.

b2Vec2 center Thepositionoftheshape'scentroidrelativetotheshape'sorigin.

float32 I Therotationalinertiaoftheshape.

Page 145: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Thisholdsthemassdatacomputedforashape.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Shape.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 146: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 147: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2Mat22StructReferenceA2-by-2matrix.Storedincolumn-majororder.More...

Listofallmembers.

Page 148: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

b2Mat22() Thedefaultconstructordoesnothing(forperformance).

b2Mat22(constb2Vec2&c1,constb2Vec2&c2) Constructthismatrixusingcolumns.

b2Mat22(float32a11,float32a12,float32a21,float32a22) Constructthismatrixusingscalars.

b2Mat22(float32angle) Constructthismatrixusinganangle.

void Set(constb2Vec2&c1,constb2Vec2&c2) Initializethismatrixusingcolumns.

void Set(float32angle) Initializethismatrixusinganangle.

void SetIdentity() Setthistotheidentitymatrix.

void SetZero() Setthismatrixtoallzeros.

float32 GetAngle()const Extracttheanglefromthismatrix(assumedtobearotationmatrix).

b2Vec2 Solve(constb2Vec2&b)const SolveA*x=b,wherebisacolumnvector.

Page 149: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

A2-by-2matrix.Storedincolumn-majororder.

Page 150: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Constructor&DestructorDocumentation

b2Mat22::b2Mat22 ( float32 angle ) [inline,explicit]

Constructthismatrixusinganangle.

Thismatrixbecomesanorthonormalrotationmatrix.

Page 151: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

voidb2Mat22::Set ( float32 angle ) [inline]

Initializethismatrixusinganangle.

Thismatrixbecomesanorthonormalrotationmatrix.

float32b2Mat22::GetAngle ( ) const[inline]

Extracttheanglefromthismatrix(assumedtobearotationmatrix).

b2Vec2b2Mat22::Solve ( constb2Vec2& b ) const[inline]

SolveA*x=b,wherebisacolumnvector.

Thisismoreefficientthancomputingtheinverseinone-shotcases.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Math.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 152: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 153: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2MouseJointClassReferenceAmousejointisusedtomakeapointonabodytrackaspecifiedworldpoint.More...

Inheritancediagramforb2MouseJoint:

Listofallmembers.

Page 154: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

b2Vec2 GetAnchor1()const Implementsb2Joint.b2Vec2 GetAnchor2()const Implementsb2Joint.b2Vec2 GetReactionForce()const Implementsb2Joint.float32 GetReactionTorque()const Implementsb2Joint.

void SetTarget(constb2Vec2&target) Usethistoupdatethetargetpoint.

Page 155: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Amousejointisusedtomakeapointonabodytrackaspecifiedworldpoint.

Thisasoftconstraintwithamaximumforce.Thisallowstheconstrainttostretchandwithoutapplyinghugeforces.

Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:

b2MouseJoint.hb2MouseJoint.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 156: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 157: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2MouseJointDefStructReferenceMousejointdefinition.More...

Inheritancediagramforb2MouseJointDef:

Listofallmembers.

Page 158: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Vec2 target Theinitialworldtargetpoint.

float32 maxForce Themaximumconstraintforcethatcanbeexertedtomovethecandidatebody.

float32 frequencyHz Theresponsespeed.

float32 dampingRatio Thedampingratio.0=nodamping,1=criticaldamping.

float32 timeStep Thetimestepusedinthesimulation.

Page 159: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Mousejointdefinition.

Thisrequiresaworldtargetpoint,tuningparameters,andthetimestep.

Page 160: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberDataDocumentation

b2Vec2b2MouseJointDef::target

Theinitialworldtargetpoint.

Thisisassumedtocoincidewiththebodyanchorinitially.

float32b2MouseJointDef::maxForce

Themaximumconstraintforcethatcanbeexertedtomovethecandidatebody.

Usuallyyouwillexpressassomemultipleoftheweight(multiplier*mass*gravity).

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2MouseJoint.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 161: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 162: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2OBBStructReferenceAnorientedboundingbox.More...

Listofallmembers.

Page 163: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Mat22 R therotationmatrix

b2Vec2 center thelocalcentroid

b2Vec2 extents thehalf-widths

Page 164: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Anorientedboundingbox.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Collision.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 165: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 166: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2PolygonDefStructReferenceConvexpolygon.More...

Inheritancediagramforb2PolygonDef:

Listofallmembers.

Page 167: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

void SetAsBox(float32hx,float32hy) Buildverticestorepresentanaxis-alignedbox.

void SetAsBox(float32hx,float32hy,constb2Vec2&center,float32angle) Buildverticestorepresentanorientedbox.

Page 168: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Vec2 vertices[b2_maxPolygonVertices] Thepolygonverticesinlocalcoordinates.

int32 vertexCount Thenumberofpolygonvertices.

Page 169: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Convexpolygon.

TheverticesmustbeinCCWorderforaright-handedcoordinatesystemwiththez-axiscomingoutofthescreen.

Page 170: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

voidb2PolygonDef::SetAsBox ( float32 hx,float32 hy

)

Buildverticestorepresentanaxis-alignedbox.

Parameters:hx thehalf-width.hy thehalf-height.

voidb2PolygonDef::SetAsBox ( float32 hx,float32 hy,constb2Vec2& center,float32 angle

)

Buildverticestorepresentanorientedbox.

Parameters:hx thehalf-width.hy thehalf-height.center thecenteroftheboxinlocalcoordinates.angle therotationoftheboxinlocalcoordinates.

Thedocumentationforthisstructwasgeneratedfromthefollowingfiles:

b2PolygonShape.hb2PolygonShape.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 171: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 172: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2PolygonShapeClassReferenceAconvexpolygon.More...

Inheritancediagramforb2PolygonShape:

Listofallmembers.

Page 173: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

bool TestPoint(constb2XForm&transform,constb2Vec2&p)const

Seealso:

b2Shape::TestPoint

bool TestSegment(constb2XForm&transform,float32*lambda,b2Vec2*normal,constb2Segment&segment,float32maxLambda)const

Seealso:

b2Shape::TestSegment

void ComputeAABB(b2AABB*aabb,constb2XForm&transform)const

Seealso:

b2Shape::ComputeAABB

void ComputeSweptAABB(b2AABB*aabb,constb2XForm&transform1,constb2XForm&transform2)const

Seealso:

b2Shape::ComputeSweptAABB

void ComputeMass(b2MassData*massData)const

Seealso:

b2Shape::ComputeMass

constb2OBB& GetOBB()const Gettheorientedboundingboxrelativetotheparentbody.

constb2Vec2& GetCentroid()const Getlocalcentroidrelativetotheparentbody.

int32 GetVertexCount()const Getthevertexcount.

constb2Vec2* GetVertices()const Gettheverticesinlocalcoordinates.

constb2Vec2* GetCoreVertices()const Getthecoreverticesinlocalcoordinates.

Page 174: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

constb2Vec2* GetNormals()const Gettheedgenormalvectors.Thereisoneforeachvertex.

b2Vec2 GetFirstVertex(constb2XForm&xf)const Getthefirstvertexandapplythesuppliedtransform.

b2Vec2 Centroid(constb2XForm&xf)const Getthecentroidandapplythesuppliedtransform.

b2Vec2 Support(constb2XForm&xf,constb2Vec2&d)const Getthesupportpointinthegivenworlddirection.

Page 175: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Friends

class b2Shape

Page 176: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Aconvexpolygon.

Page 177: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

constb2Vec2*b2PolygonShape::GetCoreVertices ( ) const[inline]

Getthecoreverticesinlocalcoordinates.

Theseverticesrepresentasmallerpolygonthatisusedfortimeofimpactcomputations.

b2Vec2b2PolygonShape::Support ( constb2XForm& xf,constb2Vec2& d

) const

Getthesupportpointinthegivenworlddirection.

Usethesuppliedtransform.

Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:

b2PolygonShape.hb2PolygonShape.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 178: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 179: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2PrismaticJointClassReferenceAprismaticjoint.More...

Inheritancediagramforb2PrismaticJoint:

Listofallmembers.

Page 180: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

b2Vec2 GetAnchor1()const Gettheanchorpointonbody1inworldcoordinates.

b2Vec2 GetAnchor2()const Gettheanchorpointonbody2inworldcoordinates.

b2Vec2 GetReactionForce()const Getthereactionforceonbody2atthejointanchor.

float32 GetReactionTorque()const Getthereactiontorqueonbody2.

float32 GetJointTranslation()const Getthecurrentjointtranslation,usuallyinmeters.

float32 GetJointSpeed()const Getthecurrentjointtranslationspeed,usuallyinmeterspersecond.

bool IsLimitEnabled()const Isthejointlimitenabled?

void EnableLimit(boolflag) Enable/disablethejointlimit.

float32 GetLowerLimit()const Getthelowerjointlimit,usuallyinmeters.

float32 GetUpperLimit()const Gettheupperjointlimit,usuallyinmeters.

void SetLimits(float32lower,float32upper) Setthejointlimits,usuallyinmeters.

bool IsMotorEnabled()const Isthejointmotorenabled?

void EnableMotor(boolflag) Enable/disablethejointmotor.

void SetMotorSpeed(float32speed) Setthemotorspeed,usuallyinmeterspersecond.

float32 GetMotorSpeed()const Getthemotorspeed,usuallyinmeterspersecond.

void SetMaxMotorForce(float32force) Setthemaximummotorforce,usuallyinN.

float32 GetMotorForce()const Getthecurrentmotorforce,usuallyinN.

Page 181: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Aprismaticjoint.

Thisjointprovidesonedegreeoffreedom:translationalonganaxisfixedinbody1.Relativerotationisprevented.Youcanuseajointlimittorestricttherangeofmotionandajointmotortodrivethemotionortomodeljointfriction.

Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:

b2PrismaticJoint.hb2PrismaticJoint.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 182: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 183: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2PrismaticJointDefStructReferencePrismaticjointdefinition.More...

Inheritancediagramforb2PrismaticJointDef:

Listofallmembers.

Page 184: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

void Initialize(b2Body*body1,b2Body*body2,constb2Vec2&anchor,constb2Vec2&axis)

Initializethebodies,anchors,axis,andreferenceangleusingtheworldanchorandworldaxis.

Page 185: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Vec2 localAnchor1 Thelocalanchorpointrelativetobody1'sorigin.

b2Vec2 localAnchor2 Thelocalanchorpointrelativetobody2'sorigin.

b2Vec2 localAxis1 Thelocaltranslationaxisinbody1.

float32 referenceAngle Theconstrainedanglebetweenthebodies:body2_angle-body1_angle.

bool enableLimit Enable/disablethejointlimit.

float32 lowerTranslation Thelowertranslationlimit,usuallyinmeters.

float32 upperTranslation Theuppertranslationlimit,usuallyinmeters.

bool enableMotor Enable/disablethejointmotor.

float32 maxMotorForce Themaximummotortorque,usuallyinN-m.

float32 motorSpeed Thedesiredmotorspeedinradianspersecond.

Page 186: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Prismaticjointdefinition.

Thisrequiresdefiningalineofmotionusinganaxisandananchorpoint.Thedefinitionuseslocalanchorpointsandalocalaxissothattheinitialconfigurationcanviolatetheconstraintslightly.Thejointtranslationiszerowhenthelocalanchorpointscoincideinworldspace.Usinglocalanchorsandalocalaxishelpswhensavingandloadingagame.

Page 187: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

voidb2PrismaticJointDef::Initialize ( b2Body* body1,b2Body* body2,constb2Vec2& anchor,constb2Vec2& axis

)

Initializethebodies,anchors,axis,andreferenceangleusingtheworldanchorandworldaxis.

Thedocumentationforthisstructwasgeneratedfromthefollowingfiles:

b2PrismaticJoint.hb2PrismaticJoint.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 188: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 189: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2PulleyJointClassReferenceThepulleyjointisconnectedtotwobodiesandtwofixedgroundpoints.More...

Inheritancediagramforb2PulleyJoint:

Listofallmembers.

Page 190: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

b2Vec2 GetAnchor1()const Gettheanchorpointonbody1inworldcoordinates.

b2Vec2 GetAnchor2()const Gettheanchorpointonbody2inworldcoordinates.

b2Vec2 GetReactionForce()const Getthereactionforceonbody2atthejointanchor.

float32 GetReactionTorque()const Getthereactiontorqueonbody2.

b2Vec2 GetGroundAnchor1()const Getthefirstgroundanchor.

b2Vec2 GetGroundAnchor2()const Getthesecondgroundanchor.

float32 GetLength1()const Getthecurrentlengthofthesegmentattachedtobody1.

float32 GetLength2()const Getthecurrentlengthofthesegmentattachedtobody2.

float32 GetRatio()const Getthepulleyratio.

Page 191: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Thepulleyjointisconnectedtotwobodiesandtwofixedgroundpoints.

Thepulleysupportsaratiosuchthat:length1+ratio*length2<=constantYes,theforcetransmittedisscaledbytheratio.Thepulleyalsoenforcesamaximumlengthlimitonbothsides.Thisisusefultopreventonesideofthepulleyhittingthetop.

Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:

b2PulleyJoint.hb2PulleyJoint.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 192: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 193: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2PulleyJointDefStructReferencePulleyjointdefinition.More...

Inheritancediagramforb2PulleyJointDef:

Listofallmembers.

Page 194: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

voidInitialize(b2Body*body1,b2Body*body2,constb2Vec2&groundAnchor1,constb2Vec2&groundAnchor2,constb2Vec2&anchor1,constb2Vec2&anchor2,float32ratio)

Initializethebodies,anchors,lengths,maxlengths,andratiousingtheworldanchors.

Page 195: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Vec2 groundAnchor1 Thefirstgroundanchorinworldcoordinates.Thispointnevermoves.

b2Vec2 groundAnchor2 Thesecondgroundanchorinworldcoordinates.Thispointnevermoves.

b2Vec2 localAnchor1 Thelocalanchorpointrelativetobody1'sorigin.

b2Vec2 localAnchor2 Thelocalanchorpointrelativetobody2'sorigin.

float32 length1 Theareferencelengthforthesegmentattachedtobody1.

float32 maxLength1 Themaximumlengthofthesegmentattachedtobody1.

float32 length2 Theareferencelengthforthesegmentattachedtobody2.

float32 maxLength2 Themaximumlengthofthesegmentattachedtobody2.

float32 ratio Thepulleyratio,usedtosimulateablock-and-tackle.

Page 196: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Pulleyjointdefinition.

Thisrequirestwogroundanchors,twodynamicbodyanchorpoints,maxlengthsforeachside,andapulleyratio.

Thedocumentationforthisstructwasgeneratedfromthefollowingfiles:

b2PulleyJoint.hb2PulleyJoint.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 197: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 198: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2RevoluteJointClassReferenceArevolutejointconstrainstobodiestoshareacommonpointwhiletheyarefreetorotateaboutthepoint.More...

Inheritancediagramforb2RevoluteJoint:

Listofallmembers.

Page 199: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

b2Vec2 GetAnchor1()const Gettheanchorpointonbody1inworldcoordinates.

b2Vec2 GetAnchor2()const Gettheanchorpointonbody2inworldcoordinates.

b2Vec2 GetReactionForce()const Getthereactionforceonbody2atthejointanchor.

float32 GetReactionTorque()const Getthereactiontorqueonbody2.

float32 GetJointAngle()const Getthecurrentjointangleinradians.

float32 GetJointSpeed()const Getthecurrentjointanglespeedinradianspersecond.

bool IsLimitEnabled()const Isthejointlimitenabled?

void EnableLimit(boolflag) Enable/disablethejointlimit.

float32 GetLowerLimit()const Getthelowerjointlimitinradians.

float32 GetUpperLimit()const Gettheupperjointlimitinradians.

void SetLimits(float32lower,float32upper) Setthejointlimitsinradians.

bool IsMotorEnabled()const Isthejointmotorenabled?

void EnableMotor(boolflag) Enable/disablethejointmotor.

void SetMotorSpeed(float32speed) Setthemotorspeedinradianspersecond.

float32 GetMotorSpeed()const Getthemotorspeedinradianspersecond.

void SetMaxMotorTorque(float32torque) Setthemaximummotortorque,usuallyinN-m.

float32 GetMotorTorque()const Getthecurrentmotortorque,usuallyinN-m.

Page 200: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Arevolutejointconstrainstobodiestoshareacommonpointwhiletheyarefreetorotateaboutthepoint.

Therelativerotationaboutthesharedpointisthejointangle.Youcanlimittherelativerotationwithajointlimitthatspecifiesalowerandupperangle.Youcanuseamotortodrivetherelativerotationaboutthesharedpoint.Amaximummotortorqueisprovidedsothatinfiniteforcesarenotgenerated.

Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:

b2RevoluteJoint.hb2RevoluteJoint.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 201: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 202: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2RevoluteJointDefStructReferenceRevolutejointdefinition.More...

Inheritancediagramforb2RevoluteJointDef:

Listofallmembers.

Page 203: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

void Initialize(b2Body*body1,b2Body*body2,constb2Vec2&anchor) Initializethebodies,anchors,andreferenceangleusingtheworldanchor.

Page 204: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Vec2 localAnchor1 Thelocalanchorpointrelativetobody1'sorigin.

b2Vec2 localAnchor2 Thelocalanchorpointrelativetobody2'sorigin.

float32 referenceAngle Thebody2angleminusbody1angleinthereferencestate(radians).

bool enableLimit Aflagtoenablejointlimits.

float32 lowerAngle Thelowerangleforthejointlimit(radians).

float32 upperAngle Theupperangleforthejointlimit(radians).

bool enableMotor Aflagtoenablethejointmotor.

float32 motorSpeed Thedesiredmotorspeed.Usuallyinradianspersecond.

float32 maxMotorTorque Themaximummotortorqueusedtoachievethedesiredmotorspeed.

Page 205: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Revolutejointdefinition.

Thisrequiresdefiningananchorpointwherethebodiesarejoined.Thedefinitionuseslocalanchorpointssothattheinitialconfigurationcanviolatetheconstraintslightly.Youalsoneedtospecifytheinitialrelativeangleforjointlimits.Thishelpswhensavingandloadingagame.Thelocalanchorpointsaremeasuredfromthebody'soriginratherthanthecenterofmassbecause:1.youmightnotknowwherethecenterofmasswillbe.2.ifyouadd/removeshapesfromabodyandrecomputethemass,thejointswillbebroken.

Page 206: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

voidb2RevoluteJointDef::Initialize ( b2Body* body1,b2Body* body2,constb2Vec2& anchor

)

Initializethebodies,anchors,andreferenceangleusingtheworldanchor.

Page 207: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberDataDocumentation

float32b2RevoluteJointDef::maxMotorTorque

Themaximummotortorqueusedtoachievethedesiredmotorspeed.

UsuallyinN-m.

Thedocumentationforthisstructwasgeneratedfromthefollowingfiles:

b2RevoluteJoint.hb2RevoluteJoint.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 208: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 209: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2SegmentStructReferenceAlinesegment.More...

Listofallmembers.

Page 210: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

bool TestSegment(float32*lambda,b2Vec2*normal,constb2Segment&segment,float32maxLambda)const

Raycastagainstthissegmentwithanothersegment.

Page 211: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Vec2 p1 thestartingpoint

b2Vec2 p2 theendingpoint

Page 212: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Alinesegment.

Thedocumentationforthisstructwasgeneratedfromthefollowingfiles:

b2Collision.hb2Collision.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 213: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 214: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ShapeClassReferenceAshapeisusedforcollisiondetection.More...

Inheritancediagramforb2Shape:

Listofallmembers.

Page 215: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

b2ShapeType GetType()const Getthetypeofthisshape.

bool IsSensor()const Isthisshapeasensor(non-solid)?

void SetFilterData(constb2FilterData&filter) Setthecontactfilteringdata.

constb2FilterData& GetFilterData()const Getthecontactfilteringdata.

b2Body* GetBody() Gettheparentbodyofthisshape.

b2Shape* GetNext() Getthenextshapeintheparentbody'sshapelist.

void* GetUserData() Gettheuserdatathatwasassignedintheshapedefinition.

void SetUserData(void*data) Settheuserdata.Usethistostoreyourapplicationspecificdata.

virtualbool TestPoint(constb2XForm&xf,constb2Vec2&p)const=0 Testapointforcontainmentinthisshape.

virtualbool TestSegment(constb2XForm&xf,float32*lambda,b2Vec2*normal,constb2Segment&segment,float32maxLambda)const=0

Performaraycastagainstthisshape.

virtualvoid ComputeAABB(b2AABB*aabb,constb2XForm&xf)const=0

Givenatransform,computetheassociatedaxisalignedboundingboxforthisshape.

virtualvoid ComputeSweptAABB(b2AABB*aabb,constb2XForm&xf1,constb2XForm&xf2)const=0

Giventwotransforms,computetheassociatedsweptaxisalignedboundingboxforthisshape.

virtualvoid ComputeMass(b2MassData*massData)const=0

Computethemasspropertiesofthisshapeusingitsdimensionsanddensity.

float32 GetSweepRadius()const Getthemaximumradiusabouttheparentbody'scenterofmass.

float32 GetFriction()const Getthecoefficientoffriction.

float32 GetRestitution()const Getthecoefficientofrestitution.

Page 216: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Friends

class b2Bodyclass b2World

Page 217: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Ashapeisusedforcollisiondetection.

Shapesarecreatedinb2World.Youcanuseshapeforcollisiondetectionbeforetheyareattachedtotheworld.

Warning:youcannotreuseshapes.

Page 218: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

b2ShapeTypeb2Shape::GetType ( ) const[inline]

Getthetypeofthisshape.

Youcanusethistodowncasttotheconcreteshape.

Returns:theshapetype.

boolb2Shape::IsSensor ( ) const[inline]

Isthisshapeasensor(non-solid)?

Returns:thetrueiftheshapeisasensor.

voidb2Shape::SetFilterData ( constb2FilterData& filter ) [inline]

Setthecontactfilteringdata.

Youmustcallb2World::Refiltertocorrectexistingcontacts/non-contacts.

b2Body*b2Shape::GetBody ( ) [inline]

Gettheparentbodyofthisshape.

ThisisNULLiftheshapeisnotattached.

Returns:theparentbody.

Page 219: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2Shape*b2Shape::GetNext ( ) [inline]

Getthenextshapeintheparentbody'sshapelist.

Returns:thenextshape.

void*b2Shape::GetUserData ( ) [inline]

Gettheuserdatathatwasassignedintheshapedefinition.

Usethistostoreyourapplicationspecificdata.

virtualboolb2Shape::TestPoint ( constb2XForm& xf,constb2Vec2& p

) const[purevirtual]

Testapointforcontainmentinthisshape.

Thisonlyworksforconvexshapes.

Parameters:xf theshapeworldtransform.p apointinworldcoordinates.

Implementedinb2CircleShape,andb2PolygonShape.

virtualboolb2Shape::TestSegment ( constb2XForm& xf,float32* lambda,b2Vec2* normal,constb2Segment& segment,float32 maxLambda

) const[purevirtual]

Performaraycastagainstthisshape.

Parameters:

Page 220: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

xf theshapeworldtransform.

lambda returnsthehitfraction.Youcanusethistocomputethecontactpointp=(1-lambda)*segment.p1+lambda*segment.p2.

normal returnsthenormalatthecontactpoint.Ifthereisnointersection,thenormalisnotset.

segment definesthebeginandendpointoftheraycast.maxLambda anumbertypicallyintherange[0,1].

Returns:trueiftherewasanintersection.

Implementedinb2CircleShape,andb2PolygonShape.

virtualvoidb2Shape::ComputeAABB ( b2AABB* aabb,constb2XForm& xf

) const[purevirtual]

Givenatransform,computetheassociatedaxisalignedboundingboxforthisshape.

Parameters:aabb returnstheaxisalignedbox.xf theworldtransformoftheshape.

Implementedinb2CircleShape,andb2PolygonShape.

virtualvoidb2Shape::ComputeSweptAABB ( b2AABB* aabb,constb2XForm& xf1,constb2XForm& xf2

) const[purevirtual]

Giventwotransforms,computetheassociatedsweptaxisalignedboundingboxforthisshape.

Parameters:aabb returnstheaxisalignedbox.xf1 thestartingshapeworldtransform.xf2 theendingshapeworldtransform.

Page 221: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Implementedinb2CircleShape,andb2PolygonShape.

virtualvoidb2Shape::ComputeMass ( b2MassData* massData ) const[purevirtual]

Computethemasspropertiesofthisshapeusingitsdimensionsanddensity.

Theinertiatensoriscomputedaboutthelocalorigin,notthecentroid.

Parameters:massData returnsthemassdataforthisshape.

Implementedinb2CircleShape,andb2PolygonShape.

Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:

b2Shape.hb2Shape.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 222: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 223: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ShapeDefStructReferenceAshapedefinitionisusedtoconstructashape.More...

Inheritancediagramforb2ShapeDef:

Listofallmembers.

Page 224: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

b2ShapeDef() Theconstructorsetsthedefaultshapedefinitionvalues.

Page 225: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2ShapeType type Holdstheshapetypefordown-casting.

void* userData Usethistostoreapplicationspecifyshapedata.

float32 friction Theshape'sfrictioncoefficient,usuallyintherange[0,1].

float32 restitution Theshape'srestitution(elasticity)usuallyintherange[0,1].

float32 density Theshape'sdensity,usuallyinkg/m^2.

bool isSensor

Asensorshapecollectscontactinformationbutnevergeneratesacollisionresponse.

b2FilterData filter Contactfilteringdata.

Page 226: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Ashapedefinitionisusedtoconstructashape.

Thisclassdefinesanabstractshapedefinition.Youcanreuseshapedefinitionssafely.

Page 227: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberDataDocumentation

boolb2ShapeDef::isSensor

Asensorshapecollectscontactinformationbutnevergeneratesacollisionresponse.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Shape.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 228: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 229: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2SweepStructReferenceThisdescribesthemotionofabody/shapeforTOIcomputation.More...

Listofallmembers.

Page 230: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

void GetXForm(b2XForm*xf,float32t)const Gettheinterpolatedtransformataspecifictime.

void Advance(float32t) Advancethesweepforward,yieldinganewinitialstate.

Page 231: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

b2Vec2 localCenter localcenterofmassposition

b2Vec2 c centerworldpositions

float32 a worldangles

float32 t0 timeinterval=[t0,1],wheret0isin[0,1]

Page 232: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Thisdescribesthemotionofabody/shapeforTOIcomputation.

Shapesaredefinedwithrespecttothebodyorigin,whichmaynocoincidewiththecenterofmass.However,tosupportdynamicswemustinterpolatethecenterofmassposition.

Page 233: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

voidb2Sweep::GetXForm ( b2XForm* xf,float32 t

) const

Gettheinterpolatedtransformataspecifictime.

Parameters:t thenormalizedtimein[0,1].

voidb2Sweep::Advance ( float32 t )

Advancethesweepforward,yieldinganewinitialstate.

Parameters:t thenewinitialtime.

Thedocumentationforthisstructwasgeneratedfromthefollowingfiles:

b2Math.hb2Math.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 234: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 235: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2Vec2StructReferenceA2Dcolumnvector.More...

Listofallmembers.

Page 236: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

b2Vec2() Defaultconstructordoesnothing(forperformance).

b2Vec2(float32x,float32y) Constructusingcoordinates.

void SetZero() Setthisvectortoallzeros.

void Set(float32x_,float32y_) Setthisvectortosomespecifiedcoordinates.

b2Vec2 operator-()const Negatethisvector.

void operator+=(constb2Vec2&v) Addavectortothisvector.

void operator-=(constb2Vec2&v) Subtractavectorfromthisvector.

void operator*=(float32a) Multiplythisvectorbyascalar.

float32 Length()const Getthelengthofthisvector(thenorm).

float32 LengthSquared()const Getthelengthsquared.

float32 Normalize() Convertthisvectorintoaunitvector.Returnsthelength.

bool IsValid()const Doesthisvectorcontainfinitecoordinates?

Page 237: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

A2Dcolumnvector.

Page 238: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

float32b2Vec2::LengthSquared ( ) const[inline]

Getthelengthsquared.

Forperformance,usethisinsteadofb2Vec2::Length(ifpossible).

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Math.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 239: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 240: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2VersionStructReferenceVersionnumberingscheme.More...

Listofallmembers.

Page 241: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicAttributes

int32 major significantchanges

int32 minor incrementalchanges

int32 revision bugfixes

Page 242: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Versionnumberingscheme.

Seehttp://en.wikipedia.org/wiki/Software_versioning

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Settings.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 243: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 244: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2WorldClassReferenceTheworldclassmanagesallphysicsentities,dynamicsimulation,andasynchronousqueries.More...

Listofallmembers.

Page 245: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

b2World(constb2AABB&worldAABB,constb2Vec2&gravity,booldoSleep) Constructaworldobject.

~b2World()

Destructtheworld.Allphysicsentitiesaredestroyedandallheapmemoryisreleased.

void SetDestructionListener(b2DestructionListener*listener) Registeradestructionlistener.

void SetBoundaryListener(b2BoundaryListener*listener) Registerabroad-phaseboundarylistener.

void SetContactFilter(b2ContactFilter*filter) Registeracontactfiltertoprovidespecificcontrolovercollision.

void SetContactListener(b2ContactListener*listener) Registeracontacteventlistener.

void SetDebugDraw(b2DebugDraw*debugDraw) Registeraroutinefordebugdrawing.

b2Body* CreateBody(constb2BodyDef*def) Createarigidbodygivenadefinition.

void DestroyBody(b2Body*body) Destroyarigidbodygivenadefinition.

b2Joint* CreateJoint(constb2JointDef*def) Createajointtoconstrainbodiestogether.

void DestroyJoint(b2Joint*joint) Destroyajoint.

b2Body* GetGroundBody() Theworldprovidesasinglestaticgroundbodywithnocollisionshapes.

void Step(float32timeStep,int32iterations) Takeatimestep.

int32 Query(constb2AABB&aabb,b2Shape**shapes,int32maxCount) QuerytheworldforallshapesthatpotentiallyoverlaptheprovidedAABB.

b2Body* GetBodyList() Gettheworldbodylist.

b2Joint* GetJointList() Gettheworldjointlist.

void Refilter(b2Shape*shape) Re-filterashape.Thisre-runscontactfilteringonashape.

void SetWarmStarting(boolflag) Enable/disablewarmstarting.Fortesting.

Page 246: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

void SetPositionCorrection(boolflag) Enable/disablepositioncorrection.Fortesting.

void SetContinuousPhysics(boolflag) Enable/disablecontinuousphysics.Fortesting.

void Validate() Performvalidationofinternaldatastructures.

int32 GetProxyCount()const Getthenumberofbroad-phaseproxies.

int32 GetPairCount()const Getthenumberofbroad-phasepairs.

int32 GetBodyCount()const Getthenumberofbodies.

int32 GetJointCount()const Getthenumberjoints.

int32 GetContactCount()const Getthenumberofcontacts(eachmayhave0ormorecontactpoints).

void SetGravity(constb2Vec2&gravity) Changetheglobalgravityvector.

Page 247: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Friends

class b2Body

Page 248: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Theworldclassmanagesallphysicsentities,dynamicsimulation,andasynchronousqueries.

Theworldalsocontainsefficientmemorymanagementfacilities.

Page 249: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Constructor&DestructorDocumentation

b2World::b2World ( constb2AABB& worldAABB,constb2Vec2& gravity,bool doSleep

)

Constructaworldobject.

Parameters:worldAABB aboundingboxthatcompletelyencompassesallyourshapes.gravity theworldgravityvector.doSleep improveperformancebynotsimulatinginactivebodies.

Page 250: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MemberFunctionDocumentation

voidb2World::SetContactFilter ( b2ContactFilter* filter )

Registeracontactfiltertoprovidespecificcontrolovercollision.

Otherwisethedefaultfilterisused(b2_defaultFilter).

voidb2World::SetDebugDraw ( b2DebugDraw* debugDraw )

Registeraroutinefordebugdrawing.

Thedebugdrawfunctionsarecalledinsidetheb2World::Stepmethod,somakesureyourrendererisreadytoconsumedrawcommandswhenyoucallStep().

b2Body*b2World::CreateBody ( constb2BodyDef* def )

Createarigidbodygivenadefinition.

Noreferencetothedefinitionisretained.

Warning:Thisfunctionislockedduringcallbacks.

voidb2World::DestroyBody ( b2Body* body )

Destroyarigidbodygivenadefinition.

Noreferencetothedefinitionisretained.Thisfunctionislockedduringcallbacks.

Warning:Thisautomaticallydeletesallassociatedshapesandjoints.

Page 251: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Thisfunctionislockedduringcallbacks.

b2Joint*b2World::CreateJoint ( constb2JointDef* def )

Createajointtoconstrainbodiestogether.

Noreferencetothedefinitionisretained.Thismaycausetheconnectedbodiestoceasecolliding.

Warning:Thisfunctionislockedduringcallbacks.

voidb2World::DestroyJoint ( b2Joint* joint )

Destroyajoint.

Thismaycausetheconnectedbodiestobegincolliding.

Warning:Thisfunctionislockedduringcallbacks.

b2Body*b2World::GetGroundBody ( ) [inline]

Theworldprovidesasinglestaticgroundbodywithnocollisionshapes.

Youcanusethistosimplifythecreationofjointsandstaticshapes.

voidb2World::Step ( float32 timeStep,int32 iterations

)

Takeatimestep.

Thisperformscollisiondetection,integration,andconstraintsolution.

Page 252: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Parameters:timeStep theamountoftimetosimulate,thisshouldnotvary.iterations thenumberofiterationstobeusedbytheconstraintsolver.

int32b2World::Query ( constb2AABB& aabb,b2Shape** shapes,int32 maxCount

)

QuerytheworldforallshapesthatpotentiallyoverlaptheprovidedAABB.

Youprovideashapepointerbufferofspecifiedsize.Thenumberofshapesfoundisreturned.

Parameters:aabb thequerybox.shapes auserallocatedshapepointerarrayofsizemaxCount(orgreater).maxCount thecapacityoftheshapesarray.

Returns:thenumberofshapesfoundinaabb.

b2Body*b2World::GetBodyList ( ) [inline]

Gettheworldbodylist.

Withthereturnedbody,useb2Body::GetNexttogetthenextbodyintheworldlist.ANULLbodyindicatestheendofthelist.

Returns:theheadoftheworldbodylist.

b2Joint*b2World::GetJointList ( ) [inline]

Gettheworldjointlist.

Page 253: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Withthereturnedjoint,useb2Joint::GetNexttogetthenextjointintheworldlist.ANULLjointindicatestheendofthelist.

Returns:theheadoftheworldjointlist.

Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:

b2World.hb2World.cpp

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 254: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 255: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2XFormStructReferenceAtransformcontainstranslationandrotation.More...

Listofallmembers.

Page 256: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

PublicMemberFunctions

b2XForm() Thedefaultconstructordoesnothing(forperformance).

b2XForm(constb2Vec2&position,constb2Mat22&R) Initializeusingapositionvectorandarotationmatrix.

void SetIdentity() Setthistotheidentitytransform.

Page 257: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Atransformcontainstranslationandrotation.

Itisusedtorepresentthepositionandorientationofrigidframes.

Thedocumentationforthisstructwasgeneratedfromthefollowingfile:

b2Math.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 258: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 259: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Box2DClassHierarchyThisinheritancelistissortedroughly,butnotcompletely,alphabetically:

b2AABBb2Bodyb2BodyDefb2BoundaryListenerb2Colorb2Contactb2ContactEdgeb2ContactFilterb2ContactIDb2ContactID::Featuresb2ContactListenerb2ContactPointb2ContactResultb2DebugDrawb2DestructionListenerb2FilterDatab2Joint

b2DistanceJointb2GearJointb2MouseJointb2PrismaticJointb2PulleyJointb2RevoluteJoint

b2JointDefb2DistanceJointDefb2GearJointDefb2MouseJointDefb2PrismaticJointDefb2PulleyJointDefb2RevoluteJointDef

b2JointEdgeb2Manifoldb2ManifoldPointb2MassData

Page 260: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2Mat22b2OBBb2Segmentb2Shape

b2CircleShapeb2PolygonShape

b2ShapeDefb2CircleDefb2PolygonDef

b2Sweepb2Vec2b2Versionb2Worldb2XForm

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 261: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-a-

a:b2SweepAdd():b2ContactListenerAdvance():b2SweepallowSleep:b2BodyDefAllowSleeping():b2Bodyangle:b2BodyDefangularDamping:b2BodyDefAppendFlags():b2DebugDrawApplyForce():b2BodyApplyImpulse():b2BodyApplyTorque():b2Body

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 262: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

FileList FileMembers

Page 263: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Box2DFileListHereisalistofalldocumentedfileswithbriefdescriptions:b2Collision.h Structuresandfunctionsusedforcomputingcontactpoints,distance

queries,andTOIqueries

b2Settings.h Globaltuningconstantsbasedonmeters-kilograms-seconds(MKS)units

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 264: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

Page 265: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2Collision.hFileReferenceStructuresandfunctionsusedforcomputingcontactpoints,distancequeries,andTOIqueries.More...

Page 266: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Classes

union b2ContactID Contactidstofacilitatewarmstarting.More...

struct b2ContactID::Features Thefeaturesthatintersecttoformthecontactpoint.More...

struct b2ManifoldPoint Amanifoldpointisacontactpointbelongingtoacontactmanifold.More...

struct b2Manifold Amanifoldfortwotouchingconvexshapes.More...

struct b2Segment Alinesegment.More...

struct b2AABB Anaxisalignedboundingbox.More...

struct b2OBB Anorientedboundingbox.More...

Page 267: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Functions

void b2CollideCircles(b2Manifold*manifold,constb2CircleShape*circle1,constb2XForm&xf1,constb2CircleShape*circle2,constb2XForm&xf2)

Computethecollisionmanifoldbetweentwocircles.

void b2CollidePolygonAndCircle(b2Manifold*manifold,constb2PolygonShape*polygon,constb2XForm&xf1,constb2CircleShape*circle,constb2XForm&xf2)

Computethecollisionmanifoldbetweenapolygonandacircle.

void b2CollidePolygons(b2Manifold*manifold,constb2PolygonShape*polygon1,constb2XForm&xf1,constb2PolygonShape*polygon2,constb2XForm&xf2)

Computethecollisionmanifoldbetweentwocircles.

float32 b2Distance(b2Vec2*x1,b2Vec2*x2,constb2Shape*shape1,constb2XForm&xf1,constb2Shape*shape2,constb2XForm&xf2)

Computethedistancebetweentwoshapesandtheclosestpoints.

float32 b2TimeOfImpact(constb2Shape*shape1,constb2Sweep&sweep1,constb2Shape*shape2,constb2Sweep&sweep2)

Computethetimewhentwoshapesbegintotouchortouchatacloserdistance.

Page 268: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Structuresandfunctionsusedforcomputingcontactpoints,distancequeries,andTOIqueries.

Page 269: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

FunctionDocumentation

float32b2Distance ( b2Vec2* x1,b2Vec2* x2,constb2Shape* shape1,constb2XForm& xf1,constb2Shape* shape2,constb2XForm& xf2

)

Computethedistancebetweentwoshapesandtheclosestpoints.

Returns:thedistancebetweentheshapesorzeroiftheyareoverlapped/touching.

float32b2TimeOfImpact ( constb2Shape* shape1,constb2Sweep& sweep1,constb2Shape* shape2,constb2Sweep& sweep2

)

Computethetimewhentwoshapesbegintotouchortouchatacloserdistance.

Warning:thesweepsmusthavethesametimeinterval.

Returns:thefractionbetween[0,1]inwhichtheshapesfirsttouch.fraction=0meanstheshapesbegintouching/overlapped,andfraction=1meanstheshapesdon'ttouch.

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 270: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

Page 271: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2Settings.hFileReferenceGlobaltuningconstantsbasedonmeters-kilograms-seconds(MKS)units.More...

Page 272: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Classes

struct b2Version Versionnumberingscheme.More...

Page 273: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Functions

void* b2Alloc(int32size) Implementthisfunctiontouseyourownmemoryallocator.

void b2Free(void*mem) Ifyouimplementb2Alloc,youshouldalsoimplementthisfunction.

float32 b2MixFriction(float32friction1,float32friction2) Frictionmixinglaw.Feelfreetocustomizethis.

float32 b2MixRestitution(float32restitution1,float32restitution2) Restitutionmixinglaw.Feelfreetocustomizethis.

Page 274: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Variables

constfloat32 b2_linearSlop=0.005f Asmalllengthusedasacollisionandconstrainttolerance.

constfloat32 b2_angularSlop=2.0f/180.0f*b2_pi Asmallangleusedasacollisionandconstrainttolerance.

constfloat32 b2_toiSlop=8.0f*b2_linearSlop Continuouscollisiondetection(CCD)workswithcore,shrunkenshapes.

constint32 b2_maxTOIContactsPerIsland=32 MaximumnumberofcontactstobehandledtosolveaTOIisland.

constfloat32 b2_velocityThreshold=1.0f Avelocitythresholdforelasticcollisions.

constfloat32 b2_maxLinearCorrection=0.2f Themaximumlinearpositioncorrectionusedwhensolvingconstraints.

constfloat32 b2_maxAngularCorrection=8.0f/180.0f*b2_pi Themaximumangularpositioncorrectionusedwhensolvingconstraints.

constfloat32 b2_maxLinearVelocity=200.0f Themaximumlinearvelocityofabody.

constfloat32 b2_maxAngularVelocity=250.0f Themaximumangularvelocityofabody.

constfloat32 b2_contactBaumgarte=0.2f Thisscalefactorcontrolshowfastoverlapisresolved.

constfloat32 b2_timeToSleep=0.5f Thetimethatabodymustbestillbeforeitwillgotosleep.

constfloat32 b2_linearSleepTolerance=0.01f Abodycannotsleepifitslinearvelocityisabovethistolerance.

constfloat32 b2_angularSleepTolerance=2.0f/180.0f Abodycannotsleepifitsangularvelocityisabovethistolerance.

int32 b2_byteCount Thecurrentnumberofbytesallocatedthroughb2Alloc.

b2Version b2_version Currentversion.

Page 275: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

DetailedDescription

Globaltuningconstantsbasedonmeters-kilograms-seconds(MKS)units.

Page 276: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

VariableDocumentation

constfloat32b2_angularSlop=2.0f/180.0f*b2_pi

Asmallangleusedasacollisionandconstrainttolerance.

Usuallyitischosentobenumericallysignificant,butvisuallyinsignificant.

constfloat32b2_contactBaumgarte=0.2f

Thisscalefactorcontrolshowfastoverlapisresolved.

Ideallythiswouldbe1sothatoverlapisremovedinonetimestep.Howeverusingvaluescloseto1oftenleadtoovershoot.

constfloat32b2_linearSlop=0.005f

Asmalllengthusedasacollisionandconstrainttolerance.

Usuallyitischosentobenumericallysignificant,butvisuallyinsignificant.

constfloat32b2_maxAngularCorrection=8.0f/180.0f*b2_pi

Themaximumangularpositioncorrectionusedwhensolvingconstraints.

Thishelpstopreventovershoot.

constfloat32b2_maxAngularVelocity=250.0f

Themaximumangularvelocityofabody.

Page 277: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Thislimitisverylargeandisusedtopreventnumericalproblems.Youshouldn'tneedtoadjustthis.

constfloat32b2_maxLinearCorrection=0.2f

Themaximumlinearpositioncorrectionusedwhensolvingconstraints.

Thishelpstopreventovershoot.

constfloat32b2_maxLinearVelocity=200.0f

Themaximumlinearvelocityofabody.

Thislimitisverylargeandisusedtopreventnumericalproblems.Youshouldn'tneedtoadjustthis.

constfloat32b2_toiSlop=8.0f*b2_linearSlop

Continuouscollisiondetection(CCD)workswithcore,shrunkenshapes.

ThisistheamountbywhichshapesareautomaticallyshrunktoworkwithCCD.Thismustbelargerthanb2_linearSlop.

constfloat32b2_velocityThreshold=1.0f

Avelocitythresholdforelasticcollisions.

Anycollisionwitharelativelinearvelocitybelowthisthresholdwillbetreatedasinelastic.

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 278: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

FileList FileMembers

All Functions Variables

Hereisalistofalldocumentedfilememberswithlinkstothedocumentation:

b2_angularSleepTolerance:b2Settings.hb2_angularSlop:b2Settings.hb2_byteCount:b2Settings.hb2_contactBaumgarte:b2Settings.hb2_linearSleepTolerance:b2Settings.hb2_linearSlop:b2Settings.hb2_maxAngularCorrection:b2Settings.hb2_maxAngularVelocity:b2Settings.hb2_maxLinearCorrection:b2Settings.hb2_maxLinearVelocity:b2Settings.hb2_maxTOIContactsPerIsland:b2Settings.hb2_timeToSleep:b2Settings.hb2_toiSlop:b2Settings.hb2_velocityThreshold:b2Settings.hb2_version:b2Settings.hb2Alloc():b2Settings.hb2CollideCircles():b2Collision.hb2CollidePolygonAndCircle():b2Collision.hb2CollidePolygons():b2Collision.hb2Distance():b2Collision.hb2Free():b2Settings.hb2MixFriction():b2Settings.hb2MixRestitution():b2Settings.hb2TimeOfImpact():b2Collision.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 279: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 280: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Box2DClassIndex

A|B|C|D|F|G|J|M|O|P|R|S|V|W|X

A b2ContactID b2GearJoint Ob2AABB b2ContactID::Features b2GearJointDef b2OBB

B b2ContactListener J Pb2Body b2ContactPoint b2Joint b2PolygonDef b2ShapeDef

b2BodyDef b2ContactResult b2JointDef b2PolygonShape

b2BoundaryListener D b2JointEdge b2PrismaticJoint

C b2DebugDraw M b2PrismaticJointDef

b2CircleDef b2DestructionListener b2Manifold b2PulleyJoint

b2CircleShape b2DistanceJoint b2ManifoldPoint b2PulleyJointDef

b2Color b2DistanceJointDef b2MassData R

b2Contact F b2Mat22 b2RevoluteJoint

b2ContactEdge b2FilterData b2MouseJoint b2RevoluteJointDef

b2ContactFilter G b2MouseJointDef

A|B|C|D|F|G|J|M|O|P|R|S|V|W|X

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 281: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 282: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2AABBMemberListThisisthecompletelistofmembersforb2AABB,includingallinheritedmembers.

IsValid()const b2AABB [inline]

lowerBound b2AABBupperBound b2AABB

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 283: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 284: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2BodyMemberListThisisthecompletelistofmembersforb2Body,includingallinheritedmembers.

AllowSleeping(boolflag) b2Body [inline]

ApplyForce(constb2Vec2&force,constb2Vec2&point) b2Body [inline]

ApplyImpulse(constb2Vec2&impulse,constb2Vec2&point) b2Body [inline]

ApplyTorque(float32torque) b2Body [inline]

CreateShape(b2ShapeDef*shapeDef) b2BodyDestroyShape(b2Shape*shape) b2BodyGetAngle()const b2Body [inline]

GetAngularVelocity()const b2Body [inline]

GetInertia()const b2Body [inline]

GetJointList() b2Body [inline]

GetLinearVelocity()const b2Body [inline]

GetLinearVelocityFromLocalPoint(constb2Vec2&localPoint)const b2Body [inline]

GetLinearVelocityFromWorldPoint(constb2Vec2&worldPoint)const b2Body [inline]

GetLocalCenter()const b2Body [inline]

GetLocalPoint(constb2Vec2&worldPoint)const b2Body [inline]

GetLocalVector(constb2Vec2&worldVector)const b2Body [inline]

GetMass()const b2Body [inline]

GetNext() b2Body [inline]

GetPosition()const b2Body [inline]

GetShapeList() b2Body [inline]

GetUserData() b2Body [inline]

GetWorld() b2Body [inline]

GetWorldCenter()const b2Body [inline]

GetWorldPoint(constb2Vec2&localPoint)const b2Body [inline]

GetWorldVector(constb2Vec2&localVector)const b2Body [inline]

GetXForm()const b2Body [inline]

IsBullet()const b2Body [inline]

IsDynamic()const b2Body [inline]

IsFrozen()const b2Body [inline]

IsSleeping()const b2Body [inline]

IsStatic()const b2Body [inline]

PutToSleep() b2Body [inline]

SetAngularVelocity(float32omega) b2Body [inline]

SetBullet(boolflag) b2Body [inline]

SetLinearVelocity(constb2Vec2&v) b2Body [inline]

SetMass(constb2MassData*massData) b2Body

Page 285: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

SetMassFromShapes() b2BodySetUserData(void*data) b2Body [inline]

SetXForm(constb2Vec2&position,float32angle) b2BodyWakeUp() b2Body [inline]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 286: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 287: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2BodyDefMemberListThisisthecompletelistofmembersforb2BodyDef,includingallinheritedmembers.

allowSleep b2BodyDefangle b2BodyDefangularDamping b2BodyDefb2BodyDef() b2BodyDef [inline]fixedRotation b2BodyDefisBullet b2BodyDefisSleeping b2BodyDeflinearDamping b2BodyDefmassData b2BodyDefposition b2BodyDefuserData b2BodyDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 288: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 289: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2BoundaryListenerMemberListThisisthecompletelistofmembersforb2BoundaryListener,includingallinheritedmembers.

Violation(b2Body*body)=0 b2BoundaryListener [purevirtual]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 290: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 291: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2CircleDefMemberListThisisthecompletelistofmembersforb2CircleDef,includingallinheritedmembers.

b2ShapeDef() b2ShapeDef [inline]density b2ShapeDeffilter b2ShapeDeffriction b2ShapeDefisSensor b2ShapeDefrestitution b2ShapeDeftype b2ShapeDefuserData b2ShapeDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 292: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 293: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2CircleShapeMemberListThisisthecompletelistofmembersforb2CircleShape,includingallinheritedmembers.

ComputeAABB(b2AABB*aabb,constb2XForm&transform)const b2CircleShape [virtual]

ComputeMass(b2MassData*massData)const b2CircleShape [virtual]

ComputeSweptAABB(b2AABB*aabb,constb2XForm&transform1,constb2XForm&transform2)const b2CircleShape [virtual]

GetBody() b2Shape [inline]

GetFilterData()const b2Shape [inline]

GetFriction()const b2Shape [inline]

GetLocalPosition()const b2CircleShape [inline]

GetNext() b2Shape [inline]

GetRadius()const b2CircleShape [inline]

GetRestitution()const b2Shape [inline]

GetSweepRadius()const b2Shape [inline]

GetType()const b2Shape [inline]

GetUserData() b2Shape [inline]

IsSensor()const b2Shape [inline]

SetFilterData(constb2FilterData&filter) b2Shape [inline]

SetUserData(void*data) b2Shape [inline]

TestPoint(constb2XForm&transform,constb2Vec2&p)const b2CircleShape [virtual]

TestSegment(constb2XForm&transform,float32*lambda,b2Vec2*normal,constb2Segment&segment,float32maxLambda)const b2CircleShape [virtual]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 294: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 295: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ColorMemberListThisisthecompletelistofmembersforb2Color,includingallinheritedmembers.

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 296: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 297: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactMemberListThisisthecompletelistofmembersforb2Contact,includingallinheritedmembers.

GetManifoldCount()const b2Contact [inline]GetManifolds()=0 b2Contact [purevirtual]GetNext() b2Contact [inline]GetShape1() b2Contact [inline]GetShape2() b2Contact [inline]IsSolid()const b2Contact [inline]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 298: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 299: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactEdgeMemberListThisisthecompletelistofmembersforb2ContactEdge,includingallinheritedmembers.

contact b2ContactEdgenext b2ContactEdgeother b2ContactEdgeprev b2ContactEdge

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 300: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 301: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactFilterMemberListThisisthecompletelistofmembersforb2ContactFilter,includingallinheritedmembers.

ShouldCollide(b2Shape*shape1,b2Shape*shape2) b2ContactFilter [virtual]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 302: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 303: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactIDMemberListThisisthecompletelistofmembersforb2ContactID,includingallinheritedmembers.

key b2ContactID

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 304: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 305: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactID::FeaturesMemberListThisisthecompletelistofmembersforb2ContactID::Features,includingallinheritedmembers.

flip b2ContactID::FeaturesincidentEdge b2ContactID::FeaturesincidentVertex b2ContactID::FeaturesreferenceEdge b2ContactID::Features

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 306: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 307: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactListenerMemberListThisisthecompletelistofmembersforb2ContactListener,includingallinheritedmembers.

Add(constb2ContactPoint*point) b2ContactListener [inline,virtual]Persist(constb2ContactPoint*point) b2ContactListener [inline,virtual]Remove(constb2ContactPoint*point) b2ContactListener [inline,virtual]Result(constb2ContactResult*point) b2ContactListener [inline,virtual]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 308: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 309: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactPointMemberListThisisthecompletelistofmembersforb2ContactPoint,includingallinheritedmembers.

friction b2ContactPointid b2ContactPointnormal b2ContactPointposition b2ContactPointrestitution b2ContactPointseparation b2ContactPointshape1 b2ContactPointshape2 b2ContactPointvelocity b2ContactPoint

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 310: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 311: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ContactResultMemberListThisisthecompletelistofmembersforb2ContactResult,includingallinheritedmembers.

id b2ContactResultnormal b2ContactResultnormalImpulse b2ContactResultposition b2ContactResultshape1 b2ContactResultshape2 b2ContactResulttangentImpulse b2ContactResult

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 312: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 313: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2DebugDrawMemberListThisisthecompletelistofmembersforb2DebugDraw,includingallinheritedmembers.

AppendFlags(uint32flags) b2DebugDrawClearFlags(uint32flags) b2DebugDrawDrawCircle(constb2Vec2&center,float32radius,constb2Color&color)=0 b2DebugDraw [pure

virtual]

DrawPolygon(constb2Vec2*vertices,int32vertexCount,constb2Color&color)=0 b2DebugDraw [pure

virtual]

DrawSegment(constb2Vec2&p1,constb2Vec2&p2,constb2Color&color)=0 b2DebugDraw [pure

virtual]

DrawSolidCircle(constb2Vec2&center,float32radius,constb2Vec2&axis,constb2Color&color)=0 b2DebugDraw [pure

virtual]

DrawSolidPolygon(constb2Vec2*vertices,int32vertexCount,constb2Color&color)=0 b2DebugDraw [pure

virtual]

DrawXForm(constb2XForm&xf)=0 b2DebugDraw [pure

virtual]

e_aabbBitenumvalue b2DebugDrawe_centerOfMassBitenumvalue b2DebugDrawe_coreShapeBitenumvalue b2DebugDrawe_jointBitenumvalue b2DebugDrawe_obbBitenumvalue b2DebugDrawe_pairBitenumvalue b2DebugDrawe_shapeBitenumvalue b2DebugDrawGetFlags()const b2DebugDrawSetFlags(uint32flags) b2DebugDraw

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 314: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 315: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2DestructionListenerMemberListThisisthecompletelistofmembersforb2DestructionListener,includingallinheritedmembers.

SayGoodbye(b2Joint*joint)=0 b2DestructionListener [purevirtual]SayGoodbye(b2Shape*shape)=0 b2DestructionListener [purevirtual]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 316: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 317: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2DistanceJointMemberListThisisthecompletelistofmembersforb2DistanceJoint,includingallinheritedmembers.

GetAnchor1()const b2DistanceJoint [virtual]GetAnchor2()const b2DistanceJoint [virtual]GetBody1() b2Joint [inline]

GetBody2() b2Joint [inline]

GetNext() b2Joint [inline]

GetReactionForce()const b2DistanceJoint [virtual]GetReactionTorque()const b2DistanceJoint [virtual]GetType()const b2Joint [inline]

GetUserData() b2Joint [inline]

SetUserData(void*data) b2Joint [inline]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 318: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 319: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2DistanceJointDefMemberListThisisthecompletelistofmembersforb2DistanceJointDef,includingallinheritedmembers.

body1 b2JointDefbody2 b2JointDefcollideConnected b2JointDefdampingRatio b2DistanceJointDeffrequencyHz b2DistanceJointDefInitialize(b2Body*body1,b2Body*body2,constb2Vec2&anchor1,constb2Vec2&anchor2) b2DistanceJointDef

length b2DistanceJointDeflocalAnchor1 b2DistanceJointDeflocalAnchor2 b2DistanceJointDeftype b2JointDefuserData b2JointDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 320: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 321: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2FilterDataMemberListThisisthecompletelistofmembersforb2FilterData,includingallinheritedmembers.

categoryBits b2FilterDatagroupIndex b2FilterDatamaskBits b2FilterData

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 322: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 323: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2GearJointMemberListThisisthecompletelistofmembersforb2GearJoint,includingallinheritedmembers.

GetAnchor1()const b2GearJoint [virtual]GetAnchor2()const b2GearJoint [virtual]GetBody1() b2Joint [inline]

GetBody2() b2Joint [inline]

GetNext() b2Joint [inline]

GetRatio()const b2GearJointGetReactionForce()const b2GearJoint [virtual]GetReactionTorque()const b2GearJoint [virtual]GetType()const b2Joint [inline]

GetUserData() b2Joint [inline]

SetUserData(void*data) b2Joint [inline]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 324: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 325: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2GearJointDefMemberListThisisthecompletelistofmembersforb2GearJointDef,includingallinheritedmembers.

body1 b2JointDefbody2 b2JointDefcollideConnected b2JointDefjoint1 b2GearJointDefjoint2 b2GearJointDefratio b2GearJointDeftype b2JointDefuserData b2JointDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 326: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 327: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2JointMemberListThisisthecompletelistofmembersforb2Joint,includingallinheritedmembers.

GetAnchor1()const=0 b2Joint [purevirtual]GetAnchor2()const=0 b2Joint [purevirtual]GetBody1() b2Joint [inline]GetBody2() b2Joint [inline]GetNext() b2Joint [inline]GetReactionForce()const=0 b2Joint [purevirtual]GetReactionTorque()const=0 b2Joint [purevirtual]GetType()const b2Joint [inline]GetUserData() b2Joint [inline]SetUserData(void*data) b2Joint [inline]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 328: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 329: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2JointDefMemberListThisisthecompletelistofmembersforb2JointDef,includingallinheritedmembers.

body1 b2JointDefbody2 b2JointDefcollideConnected b2JointDeftype b2JointDefuserData b2JointDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 330: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 331: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2JointEdgeMemberListThisisthecompletelistofmembersforb2JointEdge,includingallinheritedmembers.

joint b2JointEdgenext b2JointEdgeother b2JointEdgeprev b2JointEdge

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 332: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 333: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ManifoldMemberListThisisthecompletelistofmembersforb2Manifold,includingallinheritedmembers.

normal b2ManifoldpointCount b2Manifoldpoints b2Manifold

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 334: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 335: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ManifoldPointMemberListThisisthecompletelistofmembersforb2ManifoldPoint,includingallinheritedmembers.

id b2ManifoldPointlocalPoint1 b2ManifoldPointlocalPoint2 b2ManifoldPointnormalImpulse b2ManifoldPointseparation b2ManifoldPointtangentImpulse b2ManifoldPoint

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 336: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 337: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2MassDataMemberListThisisthecompletelistofmembersforb2MassData,includingallinheritedmembers.

center b2MassDataI b2MassDatamass b2MassData

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 338: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 339: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2Mat22MemberListThisisthecompletelistofmembersforb2Mat22,includingallinheritedmembers.

b2Mat22() b2Mat22 [inline]

b2Mat22(constb2Vec2&c1,constb2Vec2&c2) b2Mat22 [inline]

b2Mat22(float32a11,float32a12,float32a21,float32a22) b2Mat22 [inline]

b2Mat22(float32angle) b2Mat22 [inline,explicit]

GetAngle()const b2Mat22 [inline]

Set(constb2Vec2&c1,constb2Vec2&c2) b2Mat22 [inline]

Set(float32angle) b2Mat22 [inline]

SetIdentity() b2Mat22 [inline]

SetZero() b2Mat22 [inline]

Solve(constb2Vec2&b)const b2Mat22 [inline]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 340: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 341: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2MouseJointMemberListThisisthecompletelistofmembersforb2MouseJoint,includingallinheritedmembers.

GetAnchor1()const b2MouseJoint [virtual]GetAnchor2()const b2MouseJoint [virtual]GetBody1() b2Joint [inline]

GetBody2() b2Joint [inline]

GetNext() b2Joint [inline]

GetReactionForce()const b2MouseJoint [virtual]GetReactionTorque()const b2MouseJoint [virtual]GetType()const b2Joint [inline]

GetUserData() b2Joint [inline]

SetTarget(constb2Vec2&target) b2MouseJointSetUserData(void*data) b2Joint [inline]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 342: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 343: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2MouseJointDefMemberListThisisthecompletelistofmembersforb2MouseJointDef,includingallinheritedmembers.

body1 b2JointDefbody2 b2JointDefcollideConnected b2JointDefdampingRatio b2MouseJointDeffrequencyHz b2MouseJointDefmaxForce b2MouseJointDeftarget b2MouseJointDeftimeStep b2MouseJointDeftype b2JointDefuserData b2JointDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 344: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 345: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2OBBMemberListThisisthecompletelistofmembersforb2OBB,includingallinheritedmembers.

center b2OBBextents b2OBBR b2OBB

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 346: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 347: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2PolygonDefMemberListThisisthecompletelistofmembersforb2PolygonDef,includingallinheritedmembers.

b2ShapeDef() b2ShapeDef [inline]

density b2ShapeDeffilter b2ShapeDeffriction b2ShapeDefisSensor b2ShapeDefrestitution b2ShapeDefSetAsBox(float32hx,float32hy) b2PolygonDefSetAsBox(float32hx,float32hy,constb2Vec2&center,float32angle) b2PolygonDeftype b2ShapeDefuserData b2ShapeDefvertexCount b2PolygonDefvertices b2PolygonDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 348: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 349: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2PolygonShapeMemberListThisisthecompletelistofmembersforb2PolygonShape,includingallinheritedmembers.

Centroid(constb2XForm&xf)const b2PolygonShapeComputeAABB(b2AABB*aabb,constb2XForm&transform)const b2PolygonShape [virtual]

ComputeMass(b2MassData*massData)const b2PolygonShape [virtual]

ComputeSweptAABB(b2AABB*aabb,constb2XForm&transform1,constb2XForm&transform2)const b2PolygonShape [virtual]

GetBody() b2Shape [inline]

GetCentroid()const b2PolygonShape [inline]

GetCoreVertices()const b2PolygonShape [inline]

GetFilterData()const b2Shape [inline]

GetFirstVertex(constb2XForm&xf)const b2PolygonShape [inline]

GetFriction()const b2Shape [inline]

GetNext() b2Shape [inline]

GetNormals()const b2PolygonShape [inline]

GetOBB()const b2PolygonShape [inline]

GetRestitution()const b2Shape [inline]

GetSweepRadius()const b2Shape [inline]

GetType()const b2Shape [inline]

GetUserData() b2Shape [inline]

GetVertexCount()const b2PolygonShape [inline]

GetVertices()const b2PolygonShape [inline]

IsSensor()const b2Shape [inline]

SetFilterData(constb2FilterData&filter) b2Shape [inline]

SetUserData(void*data) b2Shape [inline]

Support(constb2XForm&xf,constb2Vec2&d)const b2PolygonShapeTestPoint(constb2XForm&transform,constb2Vec2&p)const b2PolygonShape [virtual]

TestSegment(constb2XForm&transform,float32*lambda,b2Vec2*normal,constb2Segment&segment,float32maxLambda)const b2PolygonShape [virtual]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 350: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 351: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2PrismaticJointMemberListThisisthecompletelistofmembersforb2PrismaticJoint,includingallinheritedmembers.

EnableLimit(boolflag) b2PrismaticJointEnableMotor(boolflag) b2PrismaticJointGetAnchor1()const b2PrismaticJoint [virtual]GetAnchor2()const b2PrismaticJoint [virtual]GetBody1() b2Joint [inline]

GetBody2() b2Joint [inline]

GetJointSpeed()const b2PrismaticJointGetJointTranslation()const b2PrismaticJointGetLowerLimit()const b2PrismaticJointGetMotorForce()const b2PrismaticJointGetMotorSpeed()const b2PrismaticJoint [inline]GetNext() b2Joint [inline]

GetReactionForce()const b2PrismaticJoint [virtual]GetReactionTorque()const b2PrismaticJoint [virtual]GetType()const b2Joint [inline]

GetUpperLimit()const b2PrismaticJointGetUserData() b2Joint [inline]

IsLimitEnabled()const b2PrismaticJointIsMotorEnabled()const b2PrismaticJointSetLimits(float32lower,float32upper) b2PrismaticJointSetMaxMotorForce(float32force) b2PrismaticJointSetMotorSpeed(float32speed) b2PrismaticJointSetUserData(void*data) b2Joint [inline]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 352: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 353: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2PrismaticJointDefMemberListThisisthecompletelistofmembersforb2PrismaticJointDef,includingallinheritedmembers.

body1 b2JointDefbody2 b2JointDefcollideConnected b2JointDefenableLimit b2PrismaticJointDefenableMotor b2PrismaticJointDefInitialize(b2Body*body1,b2Body*body2,constb2Vec2&anchor,constb2Vec2&axis) b2PrismaticJointDef

localAnchor1 b2PrismaticJointDeflocalAnchor2 b2PrismaticJointDeflocalAxis1 b2PrismaticJointDeflowerTranslation b2PrismaticJointDefmaxMotorForce b2PrismaticJointDefmotorSpeed b2PrismaticJointDefreferenceAngle b2PrismaticJointDeftype b2JointDefupperTranslation b2PrismaticJointDefuserData b2JointDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 354: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 355: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2PulleyJointMemberListThisisthecompletelistofmembersforb2PulleyJoint,includingallinheritedmembers.

GetAnchor1()const b2PulleyJoint [virtual]GetAnchor2()const b2PulleyJoint [virtual]GetBody1() b2Joint [inline]

GetBody2() b2Joint [inline]

GetGroundAnchor1()const b2PulleyJointGetGroundAnchor2()const b2PulleyJointGetLength1()const b2PulleyJointGetLength2()const b2PulleyJointGetNext() b2Joint [inline]

GetRatio()const b2PulleyJointGetReactionForce()const b2PulleyJoint [virtual]GetReactionTorque()const b2PulleyJoint [virtual]GetType()const b2Joint [inline]

GetUserData() b2Joint [inline]

SetUserData(void*data) b2Joint [inline]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 356: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 357: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2PulleyJointDefMemberListThisisthecompletelistofmembersforb2PulleyJointDef,includingallinheritedmembers.

body1 b2JointDefbody2 b2JointDefcollideConnected b2JointDefgroundAnchor1 b2PulleyJointDefgroundAnchor2 b2PulleyJointDefInitialize(b2Body*body1,b2Body*body2,constb2Vec2&groundAnchor1,constb2Vec2&groundAnchor2,constb2Vec2&anchor1,constb2Vec2&anchor2,float32ratio)

b2PulleyJointDef

length1 b2PulleyJointDeflength2 b2PulleyJointDeflocalAnchor1 b2PulleyJointDeflocalAnchor2 b2PulleyJointDefmaxLength1 b2PulleyJointDefmaxLength2 b2PulleyJointDefratio b2PulleyJointDeftype b2JointDefuserData b2JointDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 358: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 359: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2RevoluteJointMemberListThisisthecompletelistofmembersforb2RevoluteJoint,includingallinheritedmembers.

EnableLimit(boolflag) b2RevoluteJointEnableMotor(boolflag) b2RevoluteJointGetAnchor1()const b2RevoluteJoint [virtual]GetAnchor2()const b2RevoluteJoint [virtual]GetBody1() b2Joint [inline]

GetBody2() b2Joint [inline]

GetJointAngle()const b2RevoluteJointGetJointSpeed()const b2RevoluteJointGetLowerLimit()const b2RevoluteJointGetMotorSpeed()const b2RevoluteJoint [inline]GetMotorTorque()const b2RevoluteJointGetNext() b2Joint [inline]

GetReactionForce()const b2RevoluteJoint [virtual]GetReactionTorque()const b2RevoluteJoint [virtual]GetType()const b2Joint [inline]

GetUpperLimit()const b2RevoluteJointGetUserData() b2Joint [inline]

IsLimitEnabled()const b2RevoluteJointIsMotorEnabled()const b2RevoluteJointSetLimits(float32lower,float32upper) b2RevoluteJointSetMaxMotorTorque(float32torque) b2RevoluteJointSetMotorSpeed(float32speed) b2RevoluteJointSetUserData(void*data) b2Joint [inline]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 360: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 361: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2RevoluteJointDefMemberListThisisthecompletelistofmembersforb2RevoluteJointDef,includingallinheritedmembers.

body1 b2JointDefbody2 b2JointDefcollideConnected b2JointDefenableLimit b2RevoluteJointDefenableMotor b2RevoluteJointDefInitialize(b2Body*body1,b2Body*body2,constb2Vec2&anchor) b2RevoluteJointDeflocalAnchor1 b2RevoluteJointDeflocalAnchor2 b2RevoluteJointDeflowerAngle b2RevoluteJointDefmaxMotorTorque b2RevoluteJointDefmotorSpeed b2RevoluteJointDefreferenceAngle b2RevoluteJointDeftype b2JointDefupperAngle b2RevoluteJointDefuserData b2JointDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 362: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 363: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2SegmentMemberListThisisthecompletelistofmembersforb2Segment,includingallinheritedmembers.

p1 b2Segmentp2 b2SegmentTestSegment(float32*lambda,b2Vec2*normal,constb2Segment&segment,float32maxLambda)const b2Segment

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 364: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 365: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ShapeMemberListThisisthecompletelistofmembersforb2Shape,includingallinheritedmembers.

ComputeAABB(b2AABB*aabb,constb2XForm&xf)const=0 b2Shape [pure

virtual]

ComputeMass(b2MassData*massData)const=0 b2Shape [pure

virtual]

ComputeSweptAABB(b2AABB*aabb,constb2XForm&xf1,constb2XForm&xf2)const=0 b2Shape [pure

virtual]

GetBody() b2Shape [inline]

GetFilterData()const b2Shape [inline]

GetFriction()const b2Shape [inline]

GetNext() b2Shape [inline]

GetRestitution()const b2Shape [inline]

GetSweepRadius()const b2Shape [inline]

GetType()const b2Shape [inline]

GetUserData() b2Shape [inline]

IsSensor()const b2Shape [inline]

SetFilterData(constb2FilterData&filter) b2Shape [inline]

SetUserData(void*data) b2Shape [inline]

TestPoint(constb2XForm&xf,constb2Vec2&p)const=0 b2Shape [pure

virtual]

TestSegment(constb2XForm&xf,float32*lambda,b2Vec2*normal,constb2Segment&segment,float32maxLambda)const=0 b2Shape [pure

virtual]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 366: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 367: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2ShapeDefMemberListThisisthecompletelistofmembersforb2ShapeDef,includingallinheritedmembers.

b2ShapeDef() b2ShapeDef [inline]density b2ShapeDeffilter b2ShapeDeffriction b2ShapeDefisSensor b2ShapeDefrestitution b2ShapeDeftype b2ShapeDefuserData b2ShapeDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 368: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 369: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2SweepMemberListThisisthecompletelistofmembersforb2Sweep,includingallinheritedmembers.

a b2SweepAdvance(float32t) b2Sweepc b2SweepGetXForm(b2XForm*xf,float32t)const b2SweeplocalCenter b2Sweept0 b2Sweep

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 370: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 371: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2Vec2MemberListThisisthecompletelistofmembersforb2Vec2,includingallinheritedmembers.

b2Vec2() b2Vec2 [inline]

b2Vec2(float32x,float32y) b2Vec2 [inline]

IsValid()const b2Vec2 [inline]

Length()const b2Vec2 [inline]

LengthSquared()const b2Vec2 [inline]

Normalize() b2Vec2 [inline]

operator*=(float32a) b2Vec2 [inline]

operator+=(constb2Vec2&v) b2Vec2 [inline]

operator-()const b2Vec2 [inline]

operator-=(constb2Vec2&v) b2Vec2 [inline]

Set(float32x_,float32y_) b2Vec2 [inline]

SetZero() b2Vec2 [inline]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 372: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 373: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2VersionMemberListThisisthecompletelistofmembersforb2Version,includingallinheritedmembers.

major b2Versionminor b2Versionrevision b2Version

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 374: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 375: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2WorldMemberListThisisthecompletelistofmembersforb2World,includingallinheritedmembers.

b2World(constb2AABB&worldAABB,constb2Vec2&gravity,booldoSleep) b2WorldCreateBody(constb2BodyDef*def) b2WorldCreateJoint(constb2JointDef*def) b2WorldDestroyBody(b2Body*body) b2WorldDestroyJoint(b2Joint*joint) b2WorldGetBodyCount()const b2World [inline]

GetBodyList() b2World [inline]

GetContactCount()const b2World [inline]

GetGroundBody() b2World [inline]

GetJointCount()const b2World [inline]

GetJointList() b2World [inline]

GetPairCount()const b2WorldGetProxyCount()const b2WorldQuery(constb2AABB&aabb,b2Shape**shapes,int32maxCount) b2WorldRefilter(b2Shape*shape) b2WorldSetBoundaryListener(b2BoundaryListener*listener) b2WorldSetContactFilter(b2ContactFilter*filter) b2WorldSetContactListener(b2ContactListener*listener) b2WorldSetContinuousPhysics(boolflag) b2World [inline]

SetDebugDraw(b2DebugDraw*debugDraw) b2WorldSetDestructionListener(b2DestructionListener*listener) b2WorldSetGravity(constb2Vec2&gravity) b2World [inline]

SetPositionCorrection(boolflag) b2World [inline]

SetWarmStarting(boolflag) b2World [inline]

Step(float32timeStep,int32iterations) b2WorldValidate() b2World~b2World() b2World

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 376: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

Page 377: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

b2XFormMemberListThisisthecompletelistofmembersforb2XForm,includingallinheritedmembers.

b2XForm() b2XForm [inline]

b2XForm(constb2Vec2&position,constb2Mat22&R) b2XForm [inline]

SetIdentity() b2XForm [inline]

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 378: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-a-

Add():b2ContactListenerAdvance():b2SweepAllowSleeping():b2BodyAppendFlags():b2DebugDrawApplyForce():b2BodyApplyImpulse():b2BodyApplyTorque():b2Body

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 379: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p r s t u v

-a-

a:b2SweepallowSleep:b2BodyDefangle:b2BodyDefangularDamping:b2BodyDef

-b-

body1:b2JointDefbody2:b2JointDef

-c-

c:b2SweepcategoryBits:b2FilterDatacenter:b2MassData,b2OBBcollideConnected:b2JointDefcontact:b2ContactEdge

-d-

dampingRatio:b2DistanceJointDef,b2MouseJointDefdensity:b2ShapeDef

-e-

enableLimit:b2PrismaticJointDef,b2RevoluteJointDefenableMotor:b2RevoluteJointDef,b2PrismaticJointDefextents:b2OBB

-f-

Page 380: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

filter:b2ShapeDeffixedRotation:b2BodyDefflip:b2ContactID::FeaturesfrequencyHz:b2MouseJointDef,b2DistanceJointDeffriction:b2ShapeDef,b2ContactPoint

-g-

groundAnchor1:b2PulleyJointDefgroundAnchor2:b2PulleyJointDefgroupIndex:b2FilterData

-i-

I:b2MassDataid:b2ManifoldPoint,b2ContactResult,b2ContactPointincidentEdge:b2ContactID::FeaturesincidentVertex:b2ContactID::FeaturesisBullet:b2BodyDefisSensor:b2ShapeDefisSleeping:b2BodyDef

-j-

joint:b2JointEdgejoint1:b2GearJointDefjoint2:b2GearJointDef

-k-

key:b2ContactID

-l-

length:b2DistanceJointDeflength1:b2PulleyJointDeflength2:b2PulleyJointDeflinearDamping:b2BodyDeflocalAnchor1:b2RevoluteJointDef,b2DistanceJointDef,b2PrismaticJointDef,b2PulleyJointDef

Page 381: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

localAnchor2:b2DistanceJointDef,b2PrismaticJointDef,b2PulleyJointDef,b2RevoluteJointDeflocalAxis1:b2PrismaticJointDeflocalCenter:b2SweeplocalPoint1:b2ManifoldPointlocalPoint2:b2ManifoldPointlowerAngle:b2RevoluteJointDeflowerBound:b2AABBlowerTranslation:b2PrismaticJointDef

-m-

major:b2VersionmaskBits:b2FilterDatamass:b2MassDatamassData:b2BodyDefmaxForce:b2MouseJointDefmaxLength1:b2PulleyJointDefmaxLength2:b2PulleyJointDefmaxMotorForce:b2PrismaticJointDefmaxMotorTorque:b2RevoluteJointDefminor:b2VersionmotorSpeed:b2RevoluteJointDef,b2PrismaticJointDef

-n-

next:b2ContactEdge,b2JointEdgenormal:b2ContactPoint,b2ContactResult,b2ManifoldnormalImpulse:b2ContactResult,b2ManifoldPoint

-o-

other:b2ContactEdge,b2JointEdge

-p-

p1:b2Segmentp2:b2SegmentpointCount:b2Manifoldpoints:b2Manifold

Page 382: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

position:b2ContactResult,b2BodyDef,b2ContactPointprev:b2JointEdge,b2ContactEdge

-r-

R:b2OBBratio:b2GearJointDef,b2PulleyJointDefreferenceAngle:b2PrismaticJointDef,b2RevoluteJointDefreferenceEdge:b2ContactID::Featuresrestitution:b2ContactPoint,b2ShapeDefrevision:b2Version

-s-

separation:b2ManifoldPoint,b2ContactPointshape1:b2ContactResult,b2ContactPointshape2:b2ContactResult,b2ContactPoint

-t-

t0:b2SweeptangentImpulse:b2ManifoldPoint,b2ContactResulttarget:b2MouseJointDeftimeStep:b2MouseJointDeftype:b2ShapeDef,b2JointDef

-u-

upperAngle:b2RevoluteJointDefupperBound:b2AABBupperTranslation:b2PrismaticJointDefuserData:b2ShapeDef,b2BodyDef,b2JointDef

-v-

velocity:b2ContactPointvertexCount:b2PolygonDefvertices:b2PolygonDef

Page 383: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 384: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

e_aabbBit:b2DebugDrawe_centerOfMassBit:b2DebugDrawe_coreShapeBit:b2DebugDrawe_jointBit:b2DebugDrawe_obbBit:b2DebugDrawe_pairBit:b2DebugDrawe_shapeBit:b2DebugDraw

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 385: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-b-

b2BodyDef():b2BodyDefbody1:b2JointDefbody2:b2JointDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 386: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-c-

c:b2SweepcategoryBits:b2FilterDatacenter:b2MassData,b2OBBCentroid():b2PolygonShapeClearFlags():b2DebugDrawcollideConnected:b2JointDefComputeAABB():b2CircleShape,b2PolygonShape,b2ShapeComputeMass():b2CircleShape,b2PolygonShape,b2ShapeComputeSweptAABB():b2Shape,b2PolygonShape,b2CircleShapecontact:b2ContactEdgeCreateBody():b2WorldCreateJoint():b2WorldCreateShape():b2Body

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 387: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-d-

dampingRatio:b2DistanceJointDef,b2MouseJointDefdensity:b2ShapeDefDestroyBody():b2WorldDestroyJoint():b2WorldDestroyShape():b2BodyDrawCircle():b2DebugDrawDrawPolygon():b2DebugDrawDrawSegment():b2DebugDrawDrawSolidCircle():b2DebugDrawDrawSolidPolygon():b2DebugDrawDrawXForm():b2DebugDraw

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 388: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-e-

e_aabbBit:b2DebugDrawe_centerOfMassBit:b2DebugDrawe_coreShapeBit:b2DebugDrawe_jointBit:b2DebugDrawe_obbBit:b2DebugDrawe_pairBit:b2DebugDrawe_shapeBit:b2DebugDrawenableLimit:b2PrismaticJointDef,b2RevoluteJointDefEnableLimit():b2PrismaticJoint,b2RevoluteJointEnableMotor():b2RevoluteJointenableMotor:b2RevoluteJointDefEnableMotor():b2PrismaticJointenableMotor:b2PrismaticJointDefextents:b2OBB

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 389: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-f-

filter:b2ShapeDeffixedRotation:b2BodyDefflip:b2ContactID::FeaturesfrequencyHz:b2MouseJointDef,b2DistanceJointDeffriction:b2ShapeDef,b2ContactPoint

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 390: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-g-

GetAnchor1():b2DistanceJoint,b2GearJoint,b2MouseJoint,b2PrismaticJoint,b2Joint,b2PulleyJoint,b2RevoluteJointGetAnchor2():b2DistanceJoint,b2GearJoint,b2Joint,b2MouseJoint,b2PrismaticJoint,b2PulleyJoint,b2RevoluteJointGetAngle():b2Body,b2Mat22GetAngularVelocity():b2BodyGetBody():b2ShapeGetBody1():b2JointGetBody2():b2JointGetBodyCount():b2WorldGetBodyList():b2WorldGetCentroid():b2PolygonShapeGetContactCount():b2WorldGetCoreVertices():b2PolygonShapeGetFilterData():b2ShapeGetFirstVertex():b2PolygonShapeGetFlags():b2DebugDrawGetFriction():b2ShapeGetGroundAnchor1():b2PulleyJointGetGroundAnchor2():b2PulleyJointGetGroundBody():b2WorldGetInertia():b2BodyGetJointAngle():b2RevoluteJointGetJointCount():b2WorldGetJointList():b2Body,b2WorldGetJointSpeed():b2PrismaticJoint,b2RevoluteJointGetJointTranslation():b2PrismaticJointGetLength1():b2PulleyJoint

Page 391: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

GetLength2():b2PulleyJointGetLinearVelocity():b2BodyGetLinearVelocityFromLocalPoint():b2BodyGetLinearVelocityFromWorldPoint():b2BodyGetLocalCenter():b2BodyGetLocalPoint():b2BodyGetLocalPosition():b2CircleShapeGetLocalVector():b2BodyGetLowerLimit():b2PrismaticJoint,b2RevoluteJointGetManifoldCount():b2ContactGetManifolds():b2ContactGetMass():b2BodyGetMotorForce():b2PrismaticJointGetMotorSpeed():b2PrismaticJoint,b2RevoluteJointGetMotorTorque():b2RevoluteJointGetNext():b2Shape,b2Body,b2Contact,b2JointGetNormals():b2PolygonShapeGetOBB():b2PolygonShapeGetPairCount():b2WorldGetPosition():b2BodyGetProxyCount():b2WorldGetRadius():b2CircleShapeGetRatio():b2GearJoint,b2PulleyJointGetReactionForce():b2PulleyJoint,b2PrismaticJoint,b2GearJoint,b2MouseJoint,b2Joint,b2RevoluteJoint,b2DistanceJointGetReactionTorque():b2PrismaticJoint,b2Joint,b2MouseJoint,b2RevoluteJoint,b2PulleyJoint,b2DistanceJoint,b2GearJointGetRestitution():b2ShapeGetShape1():b2ContactGetShape2():b2ContactGetShapeList():b2BodyGetSweepRadius():b2ShapeGetType():b2Joint,b2ShapeGetUpperLimit():b2PrismaticJoint,b2RevoluteJointGetUserData():b2Body,b2Shape,b2JointGetVertexCount():b2PolygonShapeGetVertices():b2PolygonShape

Page 392: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

GetWorld():b2BodyGetWorldCenter():b2BodyGetWorldPoint():b2BodyGetWorldVector():b2BodyGetXForm():b2Sweep,b2BodygroundAnchor1:b2PulleyJointDefgroundAnchor2:b2PulleyJointDefgroupIndex:b2FilterData

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 393: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-i-

I:b2MassDataid:b2ManifoldPoint,b2ContactResult,b2ContactPointincidentEdge:b2ContactID::FeaturesincidentVertex:b2ContactID::FeaturesInitialize():b2PrismaticJointDef,b2PulleyJointDef,b2RevoluteJointDef,b2DistanceJointDefIsBullet():b2BodyisBullet:b2BodyDefIsDynamic():b2BodyIsFrozen():b2BodyIsLimitEnabled():b2RevoluteJoint,b2PrismaticJointIsMotorEnabled():b2PrismaticJoint,b2RevoluteJointIsSensor():b2ShapeisSensor:b2ShapeDefIsSleeping():b2BodyisSleeping:b2BodyDefIsSolid():b2ContactIsStatic():b2BodyIsValid():b2Vec2,b2AABB

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 394: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-j-

joint:b2JointEdgejoint1:b2GearJointDefjoint2:b2GearJointDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 395: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-k-

key:b2ContactID

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 396: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-l-

length:b2DistanceJointDefLength():b2Vec2length1:b2PulleyJointDeflength2:b2PulleyJointDefLengthSquared():b2Vec2linearDamping:b2BodyDeflocalAnchor1:b2PrismaticJointDef,b2PulleyJointDef,b2RevoluteJointDef,b2DistanceJointDeflocalAnchor2:b2DistanceJointDef,b2PulleyJointDef,b2PrismaticJointDef,b2RevoluteJointDeflocalAxis1:b2PrismaticJointDeflocalCenter:b2SweeplocalPoint1:b2ManifoldPointlocalPoint2:b2ManifoldPointlowerAngle:b2RevoluteJointDeflowerBound:b2AABBlowerTranslation:b2PrismaticJointDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 397: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-m-

b2Mat22():b2Mat22major:b2VersionmaskBits:b2FilterDatamass:b2MassDatamassData:b2BodyDefmaxForce:b2MouseJointDefmaxLength1:b2PulleyJointDefmaxLength2:b2PulleyJointDefmaxMotorForce:b2PrismaticJointDefmaxMotorTorque:b2RevoluteJointDefminor:b2VersionmotorSpeed:b2RevoluteJointDef,b2PrismaticJointDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 398: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-n-

next:b2ContactEdge,b2JointEdgenormal:b2ContactPoint,b2ContactResult,b2ManifoldnormalImpulse:b2ManifoldPoint,b2ContactResultNormalize():b2Vec2

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 399: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-o-

operator*=():b2Vec2operator+=():b2Vec2operator-():b2Vec2operator-=():b2Vec2other:b2ContactEdge,b2JointEdge

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 400: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-p-

p1:b2Segmentp2:b2SegmentPersist():b2ContactListenerpointCount:b2Manifoldpoints:b2Manifoldposition:b2ContactPoint,b2ContactResult,b2BodyDefprev:b2JointEdge,b2ContactEdgePutToSleep():b2Body

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 401: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-q-

Query():b2World

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 402: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-r-

R:b2OBBratio:b2GearJointDef,b2PulleyJointDefreferenceAngle:b2PrismaticJointDef,b2RevoluteJointDefreferenceEdge:b2ContactID::FeaturesRefilter():b2WorldRemove():b2ContactListenerrestitution:b2ContactPoint,b2ShapeDefResult():b2ContactListenerrevision:b2Version

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 403: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-s-

b2ShapeDef():b2ShapeDefSayGoodbye():b2DestructionListenerseparation:b2ContactPoint,b2ManifoldPointSet():b2Vec2,b2Mat22SetAngularVelocity():b2BodySetAsBox():b2PolygonDefSetBoundaryListener():b2WorldSetBullet():b2BodySetContactFilter():b2WorldSetContactListener():b2WorldSetContinuousPhysics():b2WorldSetDebugDraw():b2WorldSetDestructionListener():b2WorldSetFilterData():b2ShapeSetFlags():b2DebugDrawSetGravity():b2WorldSetIdentity():b2Mat22,b2XFormSetLimits():b2PrismaticJoint,b2RevoluteJointSetLinearVelocity():b2BodySetMass():b2BodySetMassFromShapes():b2BodySetMaxMotorForce():b2PrismaticJointSetMaxMotorTorque():b2RevoluteJointSetMotorSpeed():b2RevoluteJoint,b2PrismaticJointSetPositionCorrection():b2WorldSetTarget():b2MouseJointSetUserData():b2Shape,b2Joint,b2BodySetWarmStarting():b2WorldSetXForm():b2Body

Page 404: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

SetZero():b2Vec2,b2Mat22shape1:b2ContactPoint,b2ContactResultshape2:b2ContactResult,b2ContactPointShouldCollide():b2ContactFilterSolve():b2Mat22Step():b2WorldSupport():b2PolygonShape

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 405: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-t-

t0:b2SweeptangentImpulse:b2ManifoldPoint,b2ContactResulttarget:b2MouseJointDefTestPoint():b2CircleShape,b2PolygonShape,b2ShapeTestSegment():b2Shape,b2Segment,b2PolygonShape,b2CircleShapetimeStep:b2MouseJointDeftype:b2ShapeDef,b2JointDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 406: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-u-

upperAngle:b2RevoluteJointDefupperBound:b2AABBupperTranslation:b2PrismaticJointDefuserData:b2ShapeDef,b2BodyDef,b2JointDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 407: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-v-

b2Vec2():b2Vec2Validate():b2Worldvelocity:b2ContactPointvertexCount:b2PolygonDefvertices:b2PolygonDefViolation():b2BoundaryListener

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 408: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-w-

b2World():b2WorldWakeUp():b2Body

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 409: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-x-

b2XForm():b2XForm

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 410: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e f g i j k l m n o p q r s t u v w x ~

Hereisalistofalldocumentedclassmemberswithlinkstotheclassdocumentationforeachmember:

-~-

~b2World():b2World

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 411: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

FileList FileMembers

All Functions Variables

b2Alloc():b2Settings.hb2CollideCircles():b2Collision.hb2CollidePolygonAndCircle():b2Collision.hb2CollidePolygons():b2Collision.hb2Distance():b2Collision.hb2Free():b2Settings.hb2MixFriction():b2Settings.hb2MixRestitution():b2Settings.hb2TimeOfImpact():b2Collision.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 412: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

FileList FileMembers

All Functions Variables

b2_angularSleepTolerance:b2Settings.hb2_angularSlop:b2Settings.hb2_byteCount:b2Settings.hb2_contactBaumgarte:b2Settings.hb2_linearSleepTolerance:b2Settings.hb2_linearSlop:b2Settings.hb2_maxAngularCorrection:b2Settings.hb2_maxAngularVelocity:b2Settings.hb2_maxLinearCorrection:b2Settings.hb2_maxLinearVelocity:b2Settings.hb2_maxTOIContactsPerIsland:b2Settings.hb2_timeToSleep:b2Settings.hb2_toiSlop:b2Settings.hb2_velocityThreshold:b2Settings.hb2_version:b2Settings.h

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 413: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-b-

b2BodyDef():b2BodyDef

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 414: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-c-

Centroid():b2PolygonShapeClearFlags():b2DebugDrawComputeAABB():b2PolygonShape,b2Shape,b2CircleShapeComputeMass():b2Shape,b2CircleShape,b2PolygonShapeComputeSweptAABB():b2CircleShape,b2PolygonShape,b2ShapeCreateBody():b2WorldCreateJoint():b2WorldCreateShape():b2Body

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 415: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-d-

DestroyBody():b2WorldDestroyJoint():b2WorldDestroyShape():b2BodyDrawCircle():b2DebugDrawDrawPolygon():b2DebugDrawDrawSegment():b2DebugDrawDrawSolidCircle():b2DebugDrawDrawSolidPolygon():b2DebugDrawDrawXForm():b2DebugDraw

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 416: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-e-

EnableLimit():b2PrismaticJoint,b2RevoluteJointEnableMotor():b2PrismaticJoint,b2RevoluteJoint

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 417: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-g-

GetAnchor1():b2DistanceJoint,b2GearJoint,b2MouseJoint,b2PrismaticJoint,b2Joint,b2PulleyJoint,b2RevoluteJointGetAnchor2():b2DistanceJoint,b2GearJoint,b2Joint,b2MouseJoint,b2PrismaticJoint,b2PulleyJoint,b2RevoluteJointGetAngle():b2Body,b2Mat22GetAngularVelocity():b2BodyGetBody():b2ShapeGetBody1():b2JointGetBody2():b2JointGetBodyCount():b2WorldGetBodyList():b2WorldGetCentroid():b2PolygonShapeGetContactCount():b2WorldGetCoreVertices():b2PolygonShapeGetFilterData():b2ShapeGetFirstVertex():b2PolygonShapeGetFlags():b2DebugDrawGetFriction():b2ShapeGetGroundAnchor1():b2PulleyJointGetGroundAnchor2():b2PulleyJointGetGroundBody():b2WorldGetInertia():b2BodyGetJointAngle():b2RevoluteJointGetJointCount():b2WorldGetJointList():b2Body,b2WorldGetJointSpeed():b2PrismaticJoint,b2RevoluteJointGetJointTranslation():b2PrismaticJointGetLength1():b2PulleyJointGetLength2():b2PulleyJoint

Page 418: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

GetLinearVelocity():b2BodyGetLinearVelocityFromLocalPoint():b2BodyGetLinearVelocityFromWorldPoint():b2BodyGetLocalCenter():b2BodyGetLocalPoint():b2BodyGetLocalPosition():b2CircleShapeGetLocalVector():b2BodyGetLowerLimit():b2PrismaticJoint,b2RevoluteJointGetManifoldCount():b2ContactGetManifolds():b2ContactGetMass():b2BodyGetMotorForce():b2PrismaticJointGetMotorSpeed():b2PrismaticJoint,b2RevoluteJointGetMotorTorque():b2RevoluteJointGetNext():b2Shape,b2Body,b2Contact,b2JointGetNormals():b2PolygonShapeGetOBB():b2PolygonShapeGetPairCount():b2WorldGetPosition():b2BodyGetProxyCount():b2WorldGetRadius():b2CircleShapeGetRatio():b2GearJoint,b2PulleyJointGetReactionForce():b2Joint,b2DistanceJoint,b2GearJoint,b2MouseJoint,b2PulleyJoint,b2RevoluteJoint,b2PrismaticJointGetReactionTorque():b2PulleyJoint,b2PrismaticJoint,b2Joint,b2MouseJoint,b2RevoluteJoint,b2DistanceJoint,b2GearJointGetRestitution():b2ShapeGetShape1():b2ContactGetShape2():b2ContactGetShapeList():b2BodyGetSweepRadius():b2ShapeGetType():b2Joint,b2ShapeGetUpperLimit():b2RevoluteJoint,b2PrismaticJointGetUserData():b2Body,b2Joint,b2ShapeGetVertexCount():b2PolygonShapeGetVertices():b2PolygonShapeGetWorld():b2Body

Page 419: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

GetWorldCenter():b2BodyGetWorldPoint():b2BodyGetWorldVector():b2BodyGetXForm():b2Sweep,b2Body

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 420: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-i-

Initialize():b2DistanceJointDef,b2PrismaticJointDef,b2RevoluteJointDef,b2PulleyJointDefIsBullet():b2BodyIsDynamic():b2BodyIsFrozen():b2BodyIsLimitEnabled():b2PrismaticJoint,b2RevoluteJointIsMotorEnabled():b2RevoluteJoint,b2PrismaticJointIsSensor():b2ShapeIsSleeping():b2BodyIsSolid():b2ContactIsStatic():b2BodyIsValid():b2Vec2,b2AABB

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 421: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-l-

Length():b2Vec2LengthSquared():b2Vec2

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 422: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-m-

b2Mat22():b2Mat22

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 423: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-n-

Normalize():b2Vec2

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 424: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-o-

operator*=():b2Vec2operator+=():b2Vec2operator-():b2Vec2operator-=():b2Vec2

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 425: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-p-

Persist():b2ContactListenerPutToSleep():b2Body

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 426: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-q-

Query():b2World

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 427: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-r-

Refilter():b2WorldRemove():b2ContactListenerResult():b2ContactListener

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 428: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-s-

b2ShapeDef():b2ShapeDefSayGoodbye():b2DestructionListenerSet():b2Mat22,b2Vec2SetAngularVelocity():b2BodySetAsBox():b2PolygonDefSetBoundaryListener():b2WorldSetBullet():b2BodySetContactFilter():b2WorldSetContactListener():b2WorldSetContinuousPhysics():b2WorldSetDebugDraw():b2WorldSetDestructionListener():b2WorldSetFilterData():b2ShapeSetFlags():b2DebugDrawSetGravity():b2WorldSetIdentity():b2Mat22,b2XFormSetLimits():b2PrismaticJoint,b2RevoluteJointSetLinearVelocity():b2BodySetMass():b2BodySetMassFromShapes():b2BodySetMaxMotorForce():b2PrismaticJointSetMaxMotorTorque():b2RevoluteJointSetMotorSpeed():b2PrismaticJoint,b2RevoluteJointSetPositionCorrection():b2WorldSetTarget():b2MouseJointSetUserData():b2Joint,b2Body,b2ShapeSetWarmStarting():b2WorldSetXForm():b2BodySetZero():b2Vec2,b2Mat22ShouldCollide():b2ContactFilter

Page 429: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

Solve():b2Mat22Step():b2WorldSupport():b2PolygonShape

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 430: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-t-

TestPoint():b2CircleShape,b2PolygonShape,b2ShapeTestSegment():b2CircleShape,b2Segment,b2PolygonShape,b2Shape

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 431: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-v-

b2Vec2():b2Vec2Validate():b2WorldViolation():b2BoundaryListener

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 432: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-w-

b2World():b2WorldWakeUp():b2Body

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 433: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-x-

b2XForm():b2XForm

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4

Page 434: Main Page Classes Files - Documentation & Help · Box2D Class List Here are the classes, structs, unions and interfaces with brief descriptions: b2AABB An axis aligned bounding box

MainPage Classes Files

AlphabeticalList ClassList ClassHierarchy ClassMembers

All Functions Variables Enumerator

a b c d e g i l m n o p q r s t v w x ~

-~-

~b2World():b2World

GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4