b2Contact
b2Contact
Box2D.Dynamics.ContactsInheritance: System.Object → Box2D.b2ReusedObject{Box2D.Dynamics.Contacts.b2Contact}
Constructors
b2Contact()
b2Contact()()
b2Contact(b2Fixture, int, b2Fixture, int)
b2Contact(b2Fixture, int, b2Fixture, int)(Box2D.Dynamics.b2Fixture fA, System.Int32 indexA, Box2D.Dynamics.b2Fixture fB, System.Int32 indexB)
Parameters:
fA
(Box2D.Dynamics.b2Fixture)indexA
(System.Int32)fB
(Box2D.Dynamics.b2Fixture)indexB
(System.Int32)Fields
FixtureA(Box2D.Dynamics.b2Fixture)
FixtureB(Box2D.Dynamics.b2Fixture)
Flags(Box2D.Dynamics.Contacts.b2ContactFlags)
Friction(System.Single)
Next(Box2D.Dynamics.Contacts.b2Contact)
NodeA(Box2D.Dynamics.Contacts.b2ContactEdge)
NodeB(Box2D.Dynamics.Contacts.b2ContactEdge)
Prev(Box2D.Dynamics.Contacts.b2Contact)
Restitution(System.Single)
m_toi(System.Single)
m_toiCount(System.Int32)
s_registers(Box2D.Dynamics.Contacts.b2ContactRegister[,])
Methods
Create(b2Fixture, int, b2Fixture, int)
Box2D.Dynamics.Contacts.b2Contact Create(b2Fixture, int, b2Fixture, int)(Box2D.Dynamics.b2Fixture fixtureA, System.Int32 indexA, Box2D.Dynamics.b2Fixture fixtureB, System.Int32 indexB)
Parameters:
fixtureA
(Box2D.Dynamics.b2Fixture)indexA
(System.Int32)fixtureB
(Box2D.Dynamics.b2Fixture)indexB
(System.Int32)Returns:
Box2D.Dynamics.Contacts.b2Contact
Evaluate(b2Manifold, ref b2Transform, ref b2Transform)
Evaluate(b2Manifold, ref b2Transform, ref b2Transform)(Box2D.Collision.b2Manifold manifold, Box2D.Common.b2Transform xfA, Box2D.Common.b2Transform xfB)
Parameters:
manifold
(Box2D.Collision.b2Manifold)xfA
(Box2D.Common.b2Transform)xfB
(Box2D.Common.b2Transform)Example
FlagForFiltering()
FlagForFiltering()()
GetChildIndexA()
System.Int32 GetChildIndexA()()
Returns:
System.Int32
GetChildIndexB()
System.Int32 GetChildIndexB()()
Returns:
System.Int32
GetFixtureA()
Box2D.Dynamics.b2Fixture GetFixtureA()()
Returns:
Box2D.Dynamics.b2Fixture
GetFixtureB()
Box2D.Dynamics.b2Fixture GetFixtureB()()
Returns:
Box2D.Dynamics.b2Fixture
GetFriction()
System.Single GetFriction()()
Returns:
System.Single
GetManifold()
Box2D.Collision.b2Manifold GetManifold()()
Returns:
Box2D.Collision.b2Manifold
GetNext()
Box2D.Dynamics.Contacts.b2Contact GetNext()()
Returns:
Box2D.Dynamics.Contacts.b2Contact
GetPrev()
Box2D.Dynamics.Contacts.b2Contact GetPrev()()
Returns:
Box2D.Dynamics.Contacts.b2Contact
GetRestitution()
System.Single GetRestitution()()
Returns:
System.Single
GetWorldManifold(ref b2WorldManifold)
GetWorldManifold(ref b2WorldManifold)(Box2D.Collision.b2WorldManifold worldManifold)
Parameters:
worldManifold
(Box2D.Collision.b2WorldManifold)Init(b2Fixture, int, b2Fixture, int)
Init(b2Fixture, int, b2Fixture, int)(Box2D.Dynamics.b2Fixture fA, System.Int32 indexA, Box2D.Dynamics.b2Fixture fB, System.Int32 indexB)
Parameters:
fA
(Box2D.Dynamics.b2Fixture)indexA
(System.Int32)fB
(Box2D.Dynamics.b2Fixture)indexB
(System.Int32)IsEnabled()
System.Boolean IsEnabled()()
Returns:
System.Boolean
IsTouching()
System.Boolean IsTouching()()
Returns:
System.Boolean
ResetFriction()
ResetFriction()()
ResetRestitution()
ResetRestitution()()
SetEnabled(bool)
SetEnabled(bool)(System.Boolean flag)
Parameters:
flag
(System.Boolean)SetFriction(float)
SetFriction(float)(System.Single friction)
Parameters:
friction
(System.Single)SetRestitution(float)
SetRestitution(float)(System.Single restitution)
Parameters:
restitution
(System.Single)Update(b2ContactListener)
Update(b2ContactListener)(Box2D.Dynamics.b2ContactListener listener)
Parameters:
listener
(Box2D.Dynamics.b2ContactListener)b2MixFriction(float, float)
System.Single b2MixFriction(float, float)(System.Single friction1, System.Single friction2)
Parameters:
friction1
(System.Single)friction2
(System.Single)Returns:
System.Single
b2MixRestitution(float, float)
System.Single b2MixRestitution(float, float)(System.Single restitution1, System.Single restitution2)
Parameters:
restitution1
(System.Single)restitution2
(System.Single)Returns:
System.Single
Example