Urho3D::PhysicsWorld2D::ContactInfo Struct Reference

Contact info. More...

#include <Urho3D/Urho2D/PhysicsWorld2D.h>

Collaboration diagram for Urho3D::PhysicsWorld2D::ContactInfo:
[legend]

Public Member Functions

 ContactInfo ()
 Construct.
 
 ContactInfo (b2Contact *contract)
 Construct.
 
const PODVector< unsigned char > & Serialize (VectorBuffer &buffer) const
 Write contact info to buffer.
 

Public Attributes

SharedPtr< RigidBody2DbodyA_
 Rigid body A.
 
SharedPtr< RigidBody2DbodyB_
 Rigid body B.
 
SharedPtr< NodenodeA_
 Node A.
 
SharedPtr< NodenodeB_
 Node B.
 
SharedPtr< CollisionShape2DshapeA_
 Shape A.
 
SharedPtr< CollisionShape2DshapeB_
 Shape B.
 
int numPoints_
 Number of contact points.
 
Vector2 worldNormal_
 Contact normal in world space.
 
Vector2 worldPositions_ [b2_maxManifoldPoints]
 Contact positions in world space.
 
float separations_ [b2_maxManifoldPoints]
 Contact overlap values.
 

Detailed Description

Contact info.


The documentation for this struct was generated from the following files:
  • Source/Urho3D/Urho2D/PhysicsWorld2D.h
  • Source/Urho3D/Urho2D/PhysicsWorld2D.cpp