main page classes files - documentation & help · box2d class list here are the classes,...
TRANSCRIPT
MainPage Classes Files
Box2DAPIDocumentation2.0.1
GettingStarted
Fortutorialspleaseseehttp://www.box2d.org/manual.html
Fordiscussionpleasevisithttp://www.box2d.org/forum
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2AABBStructReferenceAnaxisalignedboundingbox.More...
Listofallmembers.
PublicMemberFunctions
bool IsValid()const Verifythattheboundsaresorted.
PublicAttributes
b2Vec2 lowerBound thelowervertex
b2Vec2 upperBound theuppervertex
DetailedDescription
Anaxisalignedboundingbox.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Collision.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2BodyClassReferenceArigidbody.More...
Listofallmembers.
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.
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)
Settheuserdata.Usethistostoreyourapplicationspecificdata.
b2World* GetWorld() Gettheparentworldofthisbody.
Friends
class b2Worldclass b2DistanceJointclass b2GearJointclass b2MouseJointclass b2PrismaticJointclass b2PulleyJointclass b2RevoluteJoint
DetailedDescription
Arigidbody.
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.
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.
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]
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
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:
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.
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2BodyDefStructReferenceAbodydefinitionholdsallthedataneededtoconstructarigidbody.More...
Listofallmembers.
PublicMemberFunctions
b2BodyDef() Thisconstructorsetsthebodydefinitiondefaultvalues.
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.
DetailedDescription
Abodydefinitionholdsallthedataneededtoconstructarigidbody.
Youcansafelyre-usebodydefinitions.
MemberDataDocumentation
b2MassDatab2BodyDef::massData
Youcanusethistoinitializedthemasspropertiesofthebody.
Ifyouprefer,youcansetthemasspropertiesaftertheshapeshavebeenaddedusingb2Body::SetMassFromShapes.
b2Vec2b2BodyDef::position
Theworldpositionofthebody.
Avoidcreatingbodiesattheoriginsincethiscanleadtomanyoverlappingshapes.
float32b2BodyDef::linearDamping
Lineardampingisusetoreducethelinearvelocity.
Thedampingparametercanbelargerthan1.0fbutthedampingeffectbecomessensitivetothetimestepwhenthedampingparameterislarge.
float32b2BodyDef::angularDamping
Angulardampingisusetoreducetheangularvelocity.
Thedampingparametercanbelargerthan1.0fbutthedampingeffectbecomessensitivetothetimestepwhenthedampingparameterislarge.
boolb2BodyDef::allowSleep
Setthisflagtofalseifthisbodyshouldneverfallasleep.
NotethatthisincreasesCPUusage.
boolb2BodyDef::isBullet
Isthisafastmovingbodythatshouldbepreventedfromtunnelingthroughothermovingbodies?Notethatallbodiesarepreventedfromtunnelingthroughstaticbodies.
Warning:Youshouldusethisflagsparinglysinceitincreasesprocessingtime.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Body.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2BoundaryListenerClassReferenceThisiscalledwhenabody'sshapepassesoutsideoftheworldboundary.More...
Listofallmembers.
PublicMemberFunctions
virtualvoid Violation(b2Body*body)=0 Thisiscalledforeachbodythatleavestheworldboundary.
DetailedDescription
Thisiscalledwhenabody'sshapepassesoutsideoftheworldboundary.
MemberFunctionDocumentation
virtualvoidb2BoundaryListener::Violation ( b2Body* body ) [purevirtual]
Thisiscalledforeachbodythatleavestheworldboundary.
Warning:youcan'tmodifytheworldinsidethiscallback.
Thedocumentationforthisclasswasgeneratedfromthefollowingfile:
b2WorldCallbacks.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2CircleDefStructReferenceThisstructureisusedtobuildcircleshapes.More...
Inheritancediagramforb2CircleDef:
Listofallmembers.
DetailedDescription
Thisstructureisusedtobuildcircleshapes.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2CircleShape.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2CircleShapeClassReferenceAcircleshape.More...
Inheritancediagramforb2CircleShape:
Listofallmembers.
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.
Friends
class b2Shape
DetailedDescription
Acircleshape.
Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:
b2CircleShape.hb2CircleShape.cpp
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ColorStructReferenceColorfordebugdrawing.Eachvaluehastherange[0,1].More...
Listofallmembers.
DetailedDescription
Colorfordebugdrawing.Eachvaluehastherange[0,1].
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2WorldCallbacks.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ContactClassReferenceTheclassmanagescontactbetweentwoshapes.More...
Inheritedbyb2CircleContact,b2NullContact,b2PolyAndCircleContact,andb2PolygonContact.
Listofallmembers.
PublicMemberFunctions
virtualb2Manifold* GetManifolds()=0 Getthemanifoldarray.
int32 GetManifoldCount()const Getthenumberofmanifolds.
bool IsSolid()const Isthiscontactsolid?
b2Contact* GetNext() Getthenextcontactintheworld'scontactlist.
b2Shape* GetShape1() Getthefirstshapeinthiscontact.
b2Shape* GetShape2() Getthesecondshapeinthiscontact.
DetailedDescription
Theclassmanagescontactbetweentwoshapes.
AcontactexistsforeachoverlappingAABBinthebroad-phase(exceptiffiltered).Thereforeacontactobjectmayexistthathasnocontactpoints.
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ContactEdgeStructReferenceAcontactedgeisusedtoconnectbodiesandcontactstogetherinacontactgraphwhereeachbodyisanodeandeachcontactisanedge.More...
Listofallmembers.
PublicAttributes
b2Body* other providesquickaccesstotheotherbodyattached.
b2Contact* contact thecontact
b2ContactEdge* prev thepreviouscontactedgeinthebody'scontactlist
b2ContactEdge* next thenextcontactedgeinthebody'scontactlist
DetailedDescription
Acontactedgeisusedtoconnectbodiesandcontactstogetherinacontactgraphwhereeachbodyisanodeandeachcontactisanedge.
Acontactedgebelongstoadoublylinkedlistmaintainedineachattachedbody.Eachcontacthastwocontactnodes,oneforeachattachedbody.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Contact.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ContactFilterClassReferenceImplementthisclasstoprovidecollisionfiltering.More...
Listofallmembers.
PublicMemberFunctions
virtualbool ShouldCollide(b2Shape*shape1,b2Shape*shape2)
Returntrueifcontactcalculationsshouldbeperformedbetweenthesetwoshapes.
DetailedDescription
Implementthisclasstoprovidecollisionfiltering.
Inotherwords,youcanimplementthisclassifyouwantfinercontrolovercontactcreation.
MemberFunctionDocumentation
boolb2ContactFilter::ShouldCollide ( b2Shape* shape1,b2Shape* shape2
) [virtual]
Returntrueifcontactcalculationsshouldbeperformedbetweenthesetwoshapes.
Warning:forperformancereasonsthisisonlycalledwhentheAABBsbegintooverlap.
Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:
b2WorldCallbacks.hb2WorldCallbacks.cpp
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ContactIDUnionReferenceContactidstofacilitatewarmstarting.More...
Listofallmembers.
PublicAttributes
uint32 key Usedtoquicklycomparecontactids.
Classes
struct Features Thefeaturesthatintersecttoformthecontactpoint.More...
DetailedDescription
Contactidstofacilitatewarmstarting.
Thedocumentationforthisunionwasgeneratedfromthefollowingfile:
b2Collision.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ContactID::Features
b2ContactID::FeaturesStructReferenceThefeaturesthatintersecttoformthecontactpoint.More...
Listofallmembers.
PublicAttributes
uint8 referenceEdge Theedgethatdefinestheoutwardcontactnormal.
uint8 incidentEdge Theedgemostanti-paralleltothereferenceedge.
uint8 incidentVertex Thevertex(0or1)ontheincidentedgethatwasclipped.
uint8 flip Avalueof1indicatesthatthereferenceedgeisonshape2.
DetailedDescription
Thefeaturesthatintersecttoformthecontactpoint.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Collision.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ContactListenerClassReferenceImplementthisclasstogetcollisionresults.More...
Listofallmembers.
PublicMemberFunctions
virtualvoid Add(constb2ContactPoint*point) Calledwhenacontactpointisadded.
virtualvoid Persist(constb2ContactPoint*point) Calledwhenacontactpointpersists.
virtualvoid Remove(constb2ContactPoint*point) Calledwhenacontactpointisremoved.
virtualvoid Result(constb2ContactResult*point) Calledafteracontactpointissolved.
DetailedDescription
Implementthisclasstogetcollisionresults.
Youcanusetheseresultsforthingslikesoundsandgamelogic.Youcanalsogetcontactresultsbytraversingthecontactlistsafterthetimestep.However,youmightmisssomecontactsbecausecontinuousphysicsleadstosub-stepping.Additionallyyoumayreceivemultiplecallbacksforthesamecontactinasingletimestep.Youshouldstrivetomakeyourcallbacksefficientbecausetheremaybemanycallbackspertimestep.
Warning:Thecontactseparationisthelastcomputedvalue.
Youcannotcreate/destroyBox2Dentitiesinsidethesecallbacks.
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ContactPointStructReferenceThisstructureisusedtoreportcontactpoints.More...
Listofallmembers.
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
DetailedDescription
Thisstructureisusedtoreportcontactpoints.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Contact.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ContactResultStructReferenceThisstructureisusedtoreportcontactpointresults.More...
Listofallmembers.
PublicAttributes
b2Shape* shape1 thefirstshape
b2Shape* shape2 thesecondshape
b2Vec2 position positioninworldcoordinates
b2Vec2 normal pointsfromshape1toshape2
float32 normalImpulse thenormalimpulseappliedtobody2
float32 tangentImpulse thetangentimpulseappliedtobody2
b2ContactID id thecontactididentifiesthefeaturesincontact
DetailedDescription
Thisstructureisusedtoreportcontactpointresults.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Contact.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2DebugDrawClassReferenceImplementandregisterthisclasswithab2Worldtoprovidedebugdrawingofphysicsentitiesinyourgame.More...
Listofallmembers.
PublicTypes
enum
{e_shapeBit=0x0001,e_jointBit=0x0002,e_coreShapeBit=0x0004,e_aabbBit=0x0008,e_obbBit=0x0010,e_pairBit=0x0020,e_centerOfMassBit=0x0040}
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¢er,float32radius,constb2Color&color)=0 Drawacircle.
virtualvoid DrawSolidCircle(constb2Vec2¢er,float32radius,constb2Vec2&axis,constb2Color&color)=0
Drawasolidcircle.
virtualvoid DrawSegment(constb2Vec2&p1,constb2Vec2&p2,constb2Color&color)=0 Drawalinesegment.
virtualvoid DrawXForm(constb2XForm&xf)=0 Drawatransform.
DetailedDescription
Implementandregisterthisclasswithab2Worldtoprovidedebugdrawingofphysicsentitiesinyourgame.
MemberEnumerationDocumentation
anonymousenum
Enumerator:e_shapeBit drawshapese_jointBit drawjointconnectionse_coreShapeBit drawcore(TOI)shapese_aabbBit drawaxisalignedboundingboxese_obbBit draworientedboundingboxese_pairBit drawbroad-phasepairse_centerOfMassBit drawcenterofmassframe
MemberFunctionDocumentation
virtualvoidb2DebugDraw::DrawXForm ( constb2XForm& xf ) [purevirtual]
Drawatransform.
Chooseyourownlengthscale.
Parameters:xf atransform.
Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:
b2WorldCallbacks.hb2WorldCallbacks.cpp
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2DestructionListenerClassReferenceJointsandshapesaredestroyedwhentheirassociatedbodyisdestroyed.More...
Listofallmembers.
PublicMemberFunctions
virtualvoid SayGoodbye(b2Joint*joint)=0
Calledwhenanyjointisabouttobedestroyedduetothedestructionofoneofitsattachedbodies.
virtualvoid SayGoodbye(b2Shape*shape)=0
Calledwhenanyshapeisabouttobedestroyedduetothedestructionofitsparentbody.
DetailedDescription
Jointsandshapesaredestroyedwhentheirassociatedbodyisdestroyed.
Implementthislistenersothatyoumaynullifyreferencestothesejointsandshapes.
MemberFunctionDocumentation
virtualvoidb2DestructionListener::SayGoodbye ( b2Joint* joint ) [purevirtual]
Calledwhenanyjointisabouttobedestroyedduetothedestructionofoneofitsattachedbodies.
virtualvoidb2DestructionListener::SayGoodbye ( b2Shape* shape ) [purevirtual]
Calledwhenanyshapeisabouttobedestroyedduetothedestructionofitsparentbody.
Thedocumentationforthisclasswasgeneratedfromthefollowingfile:
b2WorldCallbacks.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2DistanceJointClassReferenceAdistancejointconstrainstwopointsontwobodiestoremainatafixeddistancefromeachother.More...
Inheritancediagramforb2DistanceJoint:
Listofallmembers.
PublicMemberFunctions
b2Vec2 GetAnchor1()const Gettheanchorpointonbody1inworldcoordinates.
b2Vec2 GetAnchor2()const Gettheanchorpointonbody2inworldcoordinates.
b2Vec2 GetReactionForce()const Getthereactionforceonbody2atthejointanchor.
float32 GetReactionTorque()const Getthereactiontorqueonbody2.
DetailedDescription
Adistancejointconstrainstwopointsontwobodiestoremainatafixeddistancefromeachother.
Youcanviewthisasamassless,rigidrod.
Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:
b2DistanceJoint.hb2DistanceJoint.cpp
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2DistanceJointDefStructReferenceDistancejointdefinition.More...
Inheritancediagramforb2DistanceJointDef:
Listofallmembers.
PublicMemberFunctions
void Initialize(b2Body*body1,b2Body*body2,constb2Vec2&anchor1,constb2Vec2&anchor2)
Initializethebodies,anchors,andlengthusingtheworldanchors.
PublicAttributes
b2Vec2 localAnchor1 Thelocalanchorpointrelativetobody1'sorigin.
b2Vec2 localAnchor2 Thelocalanchorpointrelativetobody2'sorigin.
float32 length Theequilibriumlengthbetweentheanchorpoints.
float32 frequencyHz Theresponsespeed.
float32 dampingRatio Thedampingratio.0=nodamping,1=criticaldamping.
DetailedDescription
Distancejointdefinition.
Thisrequiresdefiningananchorpointonbothbodiesandthenon-zerolengthofthedistancejoint.Thedefinitionuseslocalanchorpointssothattheinitialconfigurationcanviolatetheconstraintslightly.Thishelpswhensavingandloadingagame.
Warning:Donotuseazeroorshortlength.
MemberFunctionDocumentation
voidb2DistanceJointDef::Initialize ( b2Body* body1,b2Body* body2,constb2Vec2& anchor1,constb2Vec2& anchor2
)
Initializethebodies,anchors,andlengthusingtheworldanchors.
Thedocumentationforthisstructwasgeneratedfromthefollowingfiles:
b2DistanceJoint.hb2DistanceJoint.cpp
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2FilterDataStructReferenceThisholdscontactfilteringdata.More...
Listofallmembers.
PublicAttributes
uint16 categoryBits Thecollisioncategorybits.Normallyyouwouldjustsetonebit.
uint16 maskBits Thecollisionmaskbits.
int16 groupIndex
Collisiongroupsallowacertaingroupofobjectstonevercollide(negative)oralwayscollide(positive).
DetailedDescription
Thisholdscontactfilteringdata.
MemberDataDocumentation
uint16b2FilterData::maskBits
Thecollisionmaskbits.
Thisstatesthecategoriesthatthisshapewouldacceptforcollision.
int16b2FilterData::groupIndex
Collisiongroupsallowacertaingroupofobjectstonevercollide(negative)oralwayscollide(positive).
Zeromeansnocollisiongroup.Non-zerogroupfilteringalwayswinsagainstthemaskbits.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Shape.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2GearJointClassReferenceAgearjointisusedtoconnecttwojointstogether.More...
Inheritancediagramforb2GearJoint:
Listofallmembers.
PublicMemberFunctions
b2Vec2 GetAnchor1()const Gettheanchorpointonbody1inworldcoordinates.
b2Vec2 GetAnchor2()const Gettheanchorpointonbody2inworldcoordinates.
b2Vec2 GetReactionForce()const Getthereactionforceonbody2atthejointanchor.
float32 GetReactionTorque()const Getthereactiontorqueonbody2.
float32 GetRatio()const Getthegearratio.
DetailedDescription
Agearjointisusedtoconnecttwojointstogether.
Eitherjointcanbearevoluteorprismaticjoint.Youspecifyagearratiotobindthemotionstogether:coordinate1+ratio*coordinate2=constantTheratiocanbenegativeorpositive.Ifonejointisarevolutejointandtheotherjointisaprismaticjoint,thentheratiowillhaveunitsoflengthorunitsof1/length.
Warning:Therevoluteandprismaticjointsmustbeattachedtofixedbodies(whichmustbebody1onthosejoints).
Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:
b2GearJoint.hb2GearJoint.cpp
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2GearJointDefStructReferenceGearjointdefinition.More...
Inheritancediagramforb2GearJointDef:
Listofallmembers.
PublicAttributes
b2Joint* joint1 Thefirstrevolute/prismaticjointattachedtothegearjoint.
b2Joint* joint2 Thesecondrevolute/prismaticjointattachedtothegearjoint.
float32 ratio Thegearratio.
DetailedDescription
Gearjointdefinition.
Thisdefinitionrequirestwoexistingrevoluteorprismaticjoints(anycombinationwillwork).Theprovidedjointsmustattachadynamicbodytoastaticbody.
MemberDataDocumentation
float32b2GearJointDef::ratio
Thegearratio.
Seealso:b2GearJointforexplanation.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2GearJoint.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2JointClassReferenceThebasejointclass.More...
Inheritancediagramforb2Joint:
Listofallmembers.
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.
Friends
class b2Worldclass b2Body
DetailedDescription
Thebasejointclass.
Jointsareusedtoconstrainttwobodiestogetherinvariousfashions.Somejointsalsofeaturelimitsandmotors.
Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:
b2Joint.hb2Joint.cpp
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2JointDefStructReferenceJointdefinitionsareusedtoconstructjoints.More...
Inheritancediagramforb2JointDef:
Listofallmembers.
PublicAttributes
b2JointType type Thejointtypeissetautomaticallyforconcretejointtypes.
void* userData Usethistoattachapplicationspecificdatatoyourjoints.
b2Body* body1 Thefirstattachedbody.
b2Body* body2 Thesecondattachedbody.
bool collideConnected Setthisflagtotrueiftheattachedbodiesshouldcollide.
DetailedDescription
Jointdefinitionsareusedtoconstructjoints.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Joint.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2JointEdgeStructReferenceAjointedgeisusedtoconnectbodiesandjointstogetherinajointgraphwhereeachbodyisanodeandeachjointisanedge.More...
Listofallmembers.
PublicAttributes
b2Body* other providesquickaccesstotheotherbodyattached.
b2Joint* joint thejoint
b2JointEdge* prev thepreviousjointedgeinthebody'sjointlist
b2JointEdge* next thenextjointedgeinthebody'sjointlist
DetailedDescription
Ajointedgeisusedtoconnectbodiesandjointstogetherinajointgraphwhereeachbodyisanodeandeachjointisanedge.
Ajointedgebelongstoadoublylinkedlistmaintainedineachattachedbody.Eachjointhastwojointnodes,oneforeachattachedbody.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Joint.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ManifoldStructReferenceAmanifoldfortwotouchingconvexshapes.More...
Listofallmembers.
PublicAttributes
b2ManifoldPoint points[b2_maxManifoldPoints] thepointsofcontact
b2Vec2 normal thesharedunitnormalvector
int32 pointCount thenumberofmanifoldpoints
DetailedDescription
Amanifoldfortwotouchingconvexshapes.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Collision.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ManifoldPointStructReferenceAmanifoldpointisacontactpointbelongingtoacontactmanifold.More...
Listofallmembers.
PublicAttributes
b2Vec2 localPoint1 localpositionofthecontactpointinbody1
b2Vec2 localPoint2 localpositionofthecontactpointinbody2
float32 separation theseparationoftheshapesalongthenormalvector
float32 normalImpulse thenon-penetrationimpulse
float32 tangentImpulse thefrictionimpulse
b2ContactID id uniquelyidentifiesacontactpointbetweentwoshapes
DetailedDescription
Amanifoldpointisacontactpointbelongingtoacontactmanifold.
Itholdsdetailsrelatedtothegeometryanddynamicsofthecontactpoints.ThepointisstoredinlocalcoordinatesbecauseCCDrequiressub-steppinginwhichtheseparationisstale.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Collision.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2MassDataStructReferenceThisholdsthemassdatacomputedforashape.More...
Listofallmembers.
PublicAttributes
float32 mass Themassoftheshape,usuallyinkilograms.
b2Vec2 center Thepositionoftheshape'scentroidrelativetotheshape'sorigin.
float32 I Therotationalinertiaoftheshape.
DetailedDescription
Thisholdsthemassdatacomputedforashape.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Shape.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2Mat22StructReferenceA2-by-2matrix.Storedincolumn-majororder.More...
Listofallmembers.
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.
DetailedDescription
A2-by-2matrix.Storedincolumn-majororder.
Constructor&DestructorDocumentation
b2Mat22::b2Mat22 ( float32 angle ) [inline,explicit]
Constructthismatrixusinganangle.
Thismatrixbecomesanorthonormalrotationmatrix.
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2MouseJointClassReferenceAmousejointisusedtomakeapointonabodytrackaspecifiedworldpoint.More...
Inheritancediagramforb2MouseJoint:
Listofallmembers.
PublicMemberFunctions
b2Vec2 GetAnchor1()const Implementsb2Joint.b2Vec2 GetAnchor2()const Implementsb2Joint.b2Vec2 GetReactionForce()const Implementsb2Joint.float32 GetReactionTorque()const Implementsb2Joint.
void SetTarget(constb2Vec2&target) Usethistoupdatethetargetpoint.
DetailedDescription
Amousejointisusedtomakeapointonabodytrackaspecifiedworldpoint.
Thisasoftconstraintwithamaximumforce.Thisallowstheconstrainttostretchandwithoutapplyinghugeforces.
Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:
b2MouseJoint.hb2MouseJoint.cpp
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2MouseJointDefStructReferenceMousejointdefinition.More...
Inheritancediagramforb2MouseJointDef:
Listofallmembers.
PublicAttributes
b2Vec2 target Theinitialworldtargetpoint.
float32 maxForce Themaximumconstraintforcethatcanbeexertedtomovethecandidatebody.
float32 frequencyHz Theresponsespeed.
float32 dampingRatio Thedampingratio.0=nodamping,1=criticaldamping.
float32 timeStep Thetimestepusedinthesimulation.
DetailedDescription
Mousejointdefinition.
Thisrequiresaworldtargetpoint,tuningparameters,andthetimestep.
MemberDataDocumentation
b2Vec2b2MouseJointDef::target
Theinitialworldtargetpoint.
Thisisassumedtocoincidewiththebodyanchorinitially.
float32b2MouseJointDef::maxForce
Themaximumconstraintforcethatcanbeexertedtomovethecandidatebody.
Usuallyyouwillexpressassomemultipleoftheweight(multiplier*mass*gravity).
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2MouseJoint.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2OBBStructReferenceAnorientedboundingbox.More...
Listofallmembers.
PublicAttributes
b2Mat22 R therotationmatrix
b2Vec2 center thelocalcentroid
b2Vec2 extents thehalf-widths
DetailedDescription
Anorientedboundingbox.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Collision.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2PolygonDefStructReferenceConvexpolygon.More...
Inheritancediagramforb2PolygonDef:
Listofallmembers.
PublicMemberFunctions
void SetAsBox(float32hx,float32hy) Buildverticestorepresentanaxis-alignedbox.
void SetAsBox(float32hx,float32hy,constb2Vec2¢er,float32angle) Buildverticestorepresentanorientedbox.
PublicAttributes
b2Vec2 vertices[b2_maxPolygonVertices] Thepolygonverticesinlocalcoordinates.
int32 vertexCount Thenumberofpolygonvertices.
DetailedDescription
Convexpolygon.
TheverticesmustbeinCCWorderforaright-handedcoordinatesystemwiththez-axiscomingoutofthescreen.
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2PolygonShapeClassReferenceAconvexpolygon.More...
Inheritancediagramforb2PolygonShape:
Listofallmembers.
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.
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.
Friends
class b2Shape
DetailedDescription
Aconvexpolygon.
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2PrismaticJointClassReferenceAprismaticjoint.More...
Inheritancediagramforb2PrismaticJoint:
Listofallmembers.
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.
DetailedDescription
Aprismaticjoint.
Thisjointprovidesonedegreeoffreedom:translationalonganaxisfixedinbody1.Relativerotationisprevented.Youcanuseajointlimittorestricttherangeofmotionandajointmotortodrivethemotionortomodeljointfriction.
Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:
b2PrismaticJoint.hb2PrismaticJoint.cpp
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2PrismaticJointDefStructReferencePrismaticjointdefinition.More...
Inheritancediagramforb2PrismaticJointDef:
Listofallmembers.
PublicMemberFunctions
void Initialize(b2Body*body1,b2Body*body2,constb2Vec2&anchor,constb2Vec2&axis)
Initializethebodies,anchors,axis,andreferenceangleusingtheworldanchorandworldaxis.
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.
DetailedDescription
Prismaticjointdefinition.
Thisrequiresdefiningalineofmotionusinganaxisandananchorpoint.Thedefinitionuseslocalanchorpointsandalocalaxissothattheinitialconfigurationcanviolatetheconstraintslightly.Thejointtranslationiszerowhenthelocalanchorpointscoincideinworldspace.Usinglocalanchorsandalocalaxishelpswhensavingandloadingagame.
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2PulleyJointClassReferenceThepulleyjointisconnectedtotwobodiesandtwofixedgroundpoints.More...
Inheritancediagramforb2PulleyJoint:
Listofallmembers.
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.
DetailedDescription
Thepulleyjointisconnectedtotwobodiesandtwofixedgroundpoints.
Thepulleysupportsaratiosuchthat:length1+ratio*length2<=constantYes,theforcetransmittedisscaledbytheratio.Thepulleyalsoenforcesamaximumlengthlimitonbothsides.Thisisusefultopreventonesideofthepulleyhittingthetop.
Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:
b2PulleyJoint.hb2PulleyJoint.cpp
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2PulleyJointDefStructReferencePulleyjointdefinition.More...
Inheritancediagramforb2PulleyJointDef:
Listofallmembers.
PublicMemberFunctions
voidInitialize(b2Body*body1,b2Body*body2,constb2Vec2&groundAnchor1,constb2Vec2&groundAnchor2,constb2Vec2&anchor1,constb2Vec2&anchor2,float32ratio)
Initializethebodies,anchors,lengths,maxlengths,andratiousingtheworldanchors.
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.
DetailedDescription
Pulleyjointdefinition.
Thisrequirestwogroundanchors,twodynamicbodyanchorpoints,maxlengthsforeachside,andapulleyratio.
Thedocumentationforthisstructwasgeneratedfromthefollowingfiles:
b2PulleyJoint.hb2PulleyJoint.cpp
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2RevoluteJointClassReferenceArevolutejointconstrainstobodiestoshareacommonpointwhiletheyarefreetorotateaboutthepoint.More...
Inheritancediagramforb2RevoluteJoint:
Listofallmembers.
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.
DetailedDescription
Arevolutejointconstrainstobodiestoshareacommonpointwhiletheyarefreetorotateaboutthepoint.
Therelativerotationaboutthesharedpointisthejointangle.Youcanlimittherelativerotationwithajointlimitthatspecifiesalowerandupperangle.Youcanuseamotortodrivetherelativerotationaboutthesharedpoint.Amaximummotortorqueisprovidedsothatinfiniteforcesarenotgenerated.
Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:
b2RevoluteJoint.hb2RevoluteJoint.cpp
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2RevoluteJointDefStructReferenceRevolutejointdefinition.More...
Inheritancediagramforb2RevoluteJointDef:
Listofallmembers.
PublicMemberFunctions
void Initialize(b2Body*body1,b2Body*body2,constb2Vec2&anchor) Initializethebodies,anchors,andreferenceangleusingtheworldanchor.
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.
DetailedDescription
Revolutejointdefinition.
Thisrequiresdefiningananchorpointwherethebodiesarejoined.Thedefinitionuseslocalanchorpointssothattheinitialconfigurationcanviolatetheconstraintslightly.Youalsoneedtospecifytheinitialrelativeangleforjointlimits.Thishelpswhensavingandloadingagame.Thelocalanchorpointsaremeasuredfromthebody'soriginratherthanthecenterofmassbecause:1.youmightnotknowwherethecenterofmasswillbe.2.ifyouadd/removeshapesfromabodyandrecomputethemass,thejointswillbebroken.
MemberFunctionDocumentation
voidb2RevoluteJointDef::Initialize ( b2Body* body1,b2Body* body2,constb2Vec2& anchor
)
Initializethebodies,anchors,andreferenceangleusingtheworldanchor.
MemberDataDocumentation
float32b2RevoluteJointDef::maxMotorTorque
Themaximummotortorqueusedtoachievethedesiredmotorspeed.
UsuallyinN-m.
Thedocumentationforthisstructwasgeneratedfromthefollowingfiles:
b2RevoluteJoint.hb2RevoluteJoint.cpp
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2SegmentStructReferenceAlinesegment.More...
Listofallmembers.
PublicMemberFunctions
bool TestSegment(float32*lambda,b2Vec2*normal,constb2Segment&segment,float32maxLambda)const
Raycastagainstthissegmentwithanothersegment.
PublicAttributes
b2Vec2 p1 thestartingpoint
b2Vec2 p2 theendingpoint
DetailedDescription
Alinesegment.
Thedocumentationforthisstructwasgeneratedfromthefollowingfiles:
b2Collision.hb2Collision.cpp
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ShapeClassReferenceAshapeisusedforcollisiondetection.More...
Inheritancediagramforb2Shape:
Listofallmembers.
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.
Friends
class b2Bodyclass b2World
DetailedDescription
Ashapeisusedforcollisiondetection.
Shapesarecreatedinb2World.Youcanuseshapeforcollisiondetectionbeforetheyareattachedtotheworld.
Warning:youcannotreuseshapes.
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.
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:
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.
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ShapeDefStructReferenceAshapedefinitionisusedtoconstructashape.More...
Inheritancediagramforb2ShapeDef:
Listofallmembers.
PublicMemberFunctions
b2ShapeDef() Theconstructorsetsthedefaultshapedefinitionvalues.
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.
DetailedDescription
Ashapedefinitionisusedtoconstructashape.
Thisclassdefinesanabstractshapedefinition.Youcanreuseshapedefinitionssafely.
MemberDataDocumentation
boolb2ShapeDef::isSensor
Asensorshapecollectscontactinformationbutnevergeneratesacollisionresponse.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Shape.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2SweepStructReferenceThisdescribesthemotionofabody/shapeforTOIcomputation.More...
Listofallmembers.
PublicMemberFunctions
void GetXForm(b2XForm*xf,float32t)const Gettheinterpolatedtransformataspecifictime.
void Advance(float32t) Advancethesweepforward,yieldinganewinitialstate.
PublicAttributes
b2Vec2 localCenter localcenterofmassposition
b2Vec2 c centerworldpositions
float32 a worldangles
float32 t0 timeinterval=[t0,1],wheret0isin[0,1]
DetailedDescription
Thisdescribesthemotionofabody/shapeforTOIcomputation.
Shapesaredefinedwithrespecttothebodyorigin,whichmaynocoincidewiththecenterofmass.However,tosupportdynamicswemustinterpolatethecenterofmassposition.
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2Vec2StructReferenceA2Dcolumnvector.More...
Listofallmembers.
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?
DetailedDescription
A2Dcolumnvector.
MemberFunctionDocumentation
float32b2Vec2::LengthSquared ( ) const[inline]
Getthelengthsquared.
Forperformance,usethisinsteadofb2Vec2::Length(ifpossible).
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Math.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2VersionStructReferenceVersionnumberingscheme.More...
Listofallmembers.
PublicAttributes
int32 major significantchanges
int32 minor incrementalchanges
int32 revision bugfixes
DetailedDescription
Versionnumberingscheme.
Seehttp://en.wikipedia.org/wiki/Software_versioning
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Settings.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2WorldClassReferenceTheworldclassmanagesallphysicsentities,dynamicsimulation,andasynchronousqueries.More...
Listofallmembers.
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.
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.
Friends
class b2Body
DetailedDescription
Theworldclassmanagesallphysicsentities,dynamicsimulation,andasynchronousqueries.
Theworldalsocontainsefficientmemorymanagementfacilities.
Constructor&DestructorDocumentation
b2World::b2World ( constb2AABB& worldAABB,constb2Vec2& gravity,bool doSleep
)
Constructaworldobject.
Parameters:worldAABB aboundingboxthatcompletelyencompassesallyourshapes.gravity theworldgravityvector.doSleep improveperformancebynotsimulatinginactivebodies.
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.
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.
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.
Withthereturnedjoint,useb2Joint::GetNexttogetthenextjointintheworldlist.ANULLjointindicatestheendofthelist.
Returns:theheadoftheworldjointlist.
Thedocumentationforthisclasswasgeneratedfromthefollowingfiles:
b2World.hb2World.cpp
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2XFormStructReferenceAtransformcontainstranslationandrotation.More...
Listofallmembers.
PublicMemberFunctions
b2XForm() Thedefaultconstructordoesnothing(forperformance).
b2XForm(constb2Vec2&position,constb2Mat22&R) Initializeusingapositionvectorandarotationmatrix.
void SetIdentity() Setthistotheidentitytransform.
DetailedDescription
Atransformcontainstranslationandrotation.
Itisusedtorepresentthepositionandorientationofrigidframes.
Thedocumentationforthisstructwasgeneratedfromthefollowingfile:
b2Math.h
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
Box2DClassHierarchyThisinheritancelistissortedroughly,butnotcompletely,alphabetically:
b2AABBb2Bodyb2BodyDefb2BoundaryListenerb2Colorb2Contactb2ContactEdgeb2ContactFilterb2ContactIDb2ContactID::Featuresb2ContactListenerb2ContactPointb2ContactResultb2DebugDrawb2DestructionListenerb2FilterDatab2Joint
b2DistanceJointb2GearJointb2MouseJointb2PrismaticJointb2PulleyJointb2RevoluteJoint
b2JointDefb2DistanceJointDefb2GearJointDefb2MouseJointDefb2PrismaticJointDefb2PulleyJointDefb2RevoluteJointDef
b2JointEdgeb2Manifoldb2ManifoldPointb2MassData
b2Mat22b2OBBb2Segmentb2Shape
b2CircleShapeb2PolygonShape
b2ShapeDefb2CircleDefb2PolygonDef
b2Sweepb2Vec2b2Versionb2Worldb2XForm
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
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
MainPage Classes Files
FileList FileMembers
Box2DFileListHereisalistofalldocumentedfileswithbriefdescriptions:b2Collision.h Structuresandfunctionsusedforcomputingcontactpoints,distance
queries,andTOIqueries
b2Settings.h Globaltuningconstantsbasedonmeters-kilograms-seconds(MKS)units
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
b2Collision.hFileReferenceStructuresandfunctionsusedforcomputingcontactpoints,distancequeries,andTOIqueries.More...
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...
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.
DetailedDescription
Structuresandfunctionsusedforcomputingcontactpoints,distancequeries,andTOIqueries.
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
MainPage Classes Files
b2Settings.hFileReferenceGlobaltuningconstantsbasedonmeters-kilograms-seconds(MKS)units.More...
Classes
struct b2Version Versionnumberingscheme.More...
Functions
void* b2Alloc(int32size) Implementthisfunctiontouseyourownmemoryallocator.
void b2Free(void*mem) Ifyouimplementb2Alloc,youshouldalsoimplementthisfunction.
float32 b2MixFriction(float32friction1,float32friction2) Frictionmixinglaw.Feelfreetocustomizethis.
float32 b2MixRestitution(float32restitution1,float32restitution2) Restitutionmixinglaw.Feelfreetocustomizethis.
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.
DetailedDescription
Globaltuningconstantsbasedonmeters-kilograms-seconds(MKS)units.
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.
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
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2AABBMemberListThisisthecompletelistofmembersforb2AABB,includingallinheritedmembers.
IsValid()const b2AABB [inline]
lowerBound b2AABBupperBound b2AABB
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
SetMassFromShapes() b2BodySetUserData(void*data) b2Body [inline]
SetXForm(constb2Vec2&position,float32angle) b2BodyWakeUp() b2Body [inline]
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2BodyDefMemberListThisisthecompletelistofmembersforb2BodyDef,includingallinheritedmembers.
allowSleep b2BodyDefangle b2BodyDefangularDamping b2BodyDefb2BodyDef() b2BodyDef [inline]fixedRotation b2BodyDefisBullet b2BodyDefisSleeping b2BodyDeflinearDamping b2BodyDefmassData b2BodyDefposition b2BodyDefuserData b2BodyDef
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2BoundaryListenerMemberListThisisthecompletelistofmembersforb2BoundaryListener,includingallinheritedmembers.
Violation(b2Body*body)=0 b2BoundaryListener [purevirtual]
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2CircleDefMemberListThisisthecompletelistofmembersforb2CircleDef,includingallinheritedmembers.
b2ShapeDef() b2ShapeDef [inline]density b2ShapeDeffilter b2ShapeDeffriction b2ShapeDefisSensor b2ShapeDefrestitution b2ShapeDeftype b2ShapeDefuserData b2ShapeDef
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ColorMemberListThisisthecompletelistofmembersforb2Color,includingallinheritedmembers.
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ContactEdgeMemberListThisisthecompletelistofmembersforb2ContactEdge,includingallinheritedmembers.
contact b2ContactEdgenext b2ContactEdgeother b2ContactEdgeprev b2ContactEdge
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ContactFilterMemberListThisisthecompletelistofmembersforb2ContactFilter,includingallinheritedmembers.
ShouldCollide(b2Shape*shape1,b2Shape*shape2) b2ContactFilter [virtual]
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ContactIDMemberListThisisthecompletelistofmembersforb2ContactID,includingallinheritedmembers.
key b2ContactID
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ContactID::FeaturesMemberListThisisthecompletelistofmembersforb2ContactID::Features,includingallinheritedmembers.
flip b2ContactID::FeaturesincidentEdge b2ContactID::FeaturesincidentVertex b2ContactID::FeaturesreferenceEdge b2ContactID::Features
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ContactPointMemberListThisisthecompletelistofmembersforb2ContactPoint,includingallinheritedmembers.
friction b2ContactPointid b2ContactPointnormal b2ContactPointposition b2ContactPointrestitution b2ContactPointseparation b2ContactPointshape1 b2ContactPointshape2 b2ContactPointvelocity b2ContactPoint
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ContactResultMemberListThisisthecompletelistofmembersforb2ContactResult,includingallinheritedmembers.
id b2ContactResultnormal b2ContactResultnormalImpulse b2ContactResultposition b2ContactResultshape1 b2ContactResultshape2 b2ContactResulttangentImpulse b2ContactResult
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2DebugDrawMemberListThisisthecompletelistofmembersforb2DebugDraw,includingallinheritedmembers.
AppendFlags(uint32flags) b2DebugDrawClearFlags(uint32flags) b2DebugDrawDrawCircle(constb2Vec2¢er,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¢er,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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2DestructionListenerMemberListThisisthecompletelistofmembersforb2DestructionListener,includingallinheritedmembers.
SayGoodbye(b2Joint*joint)=0 b2DestructionListener [purevirtual]SayGoodbye(b2Shape*shape)=0 b2DestructionListener [purevirtual]
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2FilterDataMemberListThisisthecompletelistofmembersforb2FilterData,includingallinheritedmembers.
categoryBits b2FilterDatagroupIndex b2FilterDatamaskBits b2FilterData
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2GearJointDefMemberListThisisthecompletelistofmembersforb2GearJointDef,includingallinheritedmembers.
body1 b2JointDefbody2 b2JointDefcollideConnected b2JointDefjoint1 b2GearJointDefjoint2 b2GearJointDefratio b2GearJointDeftype b2JointDefuserData b2JointDef
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2JointDefMemberListThisisthecompletelistofmembersforb2JointDef,includingallinheritedmembers.
body1 b2JointDefbody2 b2JointDefcollideConnected b2JointDeftype b2JointDefuserData b2JointDef
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2JointEdgeMemberListThisisthecompletelistofmembersforb2JointEdge,includingallinheritedmembers.
joint b2JointEdgenext b2JointEdgeother b2JointEdgeprev b2JointEdge
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ManifoldMemberListThisisthecompletelistofmembersforb2Manifold,includingallinheritedmembers.
normal b2ManifoldpointCount b2Manifoldpoints b2Manifold
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ManifoldPointMemberListThisisthecompletelistofmembersforb2ManifoldPoint,includingallinheritedmembers.
id b2ManifoldPointlocalPoint1 b2ManifoldPointlocalPoint2 b2ManifoldPointnormalImpulse b2ManifoldPointseparation b2ManifoldPointtangentImpulse b2ManifoldPoint
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2MassDataMemberListThisisthecompletelistofmembersforb2MassData,includingallinheritedmembers.
center b2MassDataI b2MassDatamass b2MassData
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2MouseJointDefMemberListThisisthecompletelistofmembersforb2MouseJointDef,includingallinheritedmembers.
body1 b2JointDefbody2 b2JointDefcollideConnected b2JointDefdampingRatio b2MouseJointDeffrequencyHz b2MouseJointDefmaxForce b2MouseJointDeftarget b2MouseJointDeftimeStep b2MouseJointDeftype b2JointDefuserData b2JointDef
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2OBBMemberListThisisthecompletelistofmembersforb2OBB,includingallinheritedmembers.
center b2OBBextents b2OBBR b2OBB
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2PolygonDefMemberListThisisthecompletelistofmembersforb2PolygonDef,includingallinheritedmembers.
b2ShapeDef() b2ShapeDef [inline]
density b2ShapeDeffilter b2ShapeDeffriction b2ShapeDefisSensor b2ShapeDefrestitution b2ShapeDefSetAsBox(float32hx,float32hy) b2PolygonDefSetAsBox(float32hx,float32hy,constb2Vec2¢er,float32angle) b2PolygonDeftype b2ShapeDefuserData b2ShapeDefvertexCount b2PolygonDefvertices b2PolygonDef
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2SegmentMemberListThisisthecompletelistofmembersforb2Segment,includingallinheritedmembers.
p1 b2Segmentp2 b2SegmentTestSegment(float32*lambda,b2Vec2*normal,constb2Segment&segment,float32maxLambda)const b2Segment
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2ShapeDefMemberListThisisthecompletelistofmembersforb2ShapeDef,includingallinheritedmembers.
b2ShapeDef() b2ShapeDef [inline]density b2ShapeDeffilter b2ShapeDeffriction b2ShapeDefisSensor b2ShapeDefrestitution b2ShapeDeftype b2ShapeDefuserData b2ShapeDef
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2SweepMemberListThisisthecompletelistofmembersforb2Sweep,includingallinheritedmembers.
a b2SweepAdvance(float32t) b2Sweepc b2SweepGetXForm(b2XForm*xf,float32t)const b2SweeplocalCenter b2Sweept0 b2Sweep
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2VersionMemberListThisisthecompletelistofmembersforb2Version,includingallinheritedmembers.
major b2Versionminor b2Versionrevision b2Version
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
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
MainPage Classes Files
AlphabeticalList ClassList ClassHierarchy ClassMembers
b2XFormMemberListThisisthecompletelistofmembersforb2XForm,includingallinheritedmembers.
b2XForm() b2XForm [inline]
b2XForm(constb2Vec2&position,constb2Mat22&R) b2XForm [inline]
SetIdentity() b2XForm [inline]
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
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
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-
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
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
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
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
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
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
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
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
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
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
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
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
GetWorld():b2BodyGetWorldCenter():b2BodyGetWorldPoint():b2BodyGetWorldVector():b2BodyGetXForm():b2Sweep,b2BodygroundAnchor1:b2PulleyJointDefgroundAnchor2:b2PulleyJointDefgroupIndex:b2FilterData
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
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
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
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
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
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
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
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
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
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
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
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
SetZero():b2Vec2,b2Mat22shape1:b2ContactPoint,b2ContactResultshape2:b2ContactResult,b2ContactPointShouldCollide():b2ContactFilterSolve():b2Mat22Step():b2WorldSupport():b2PolygonShape
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
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
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
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
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
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
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
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
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
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
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
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
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
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
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
GetWorldCenter():b2BodyGetWorldPoint():b2BodyGetWorldVector():b2BodyGetXForm():b2Sweep,b2Body
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
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
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
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
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
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
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
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
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
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
Solve():b2Mat22Step():b2WorldSupport():b2PolygonShape
GeneratedonSunApr1315:21:272008forBox2Dby 1.5.4
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
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
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
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
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