HomeSort by relevance Sort by last modified time
    Searched full:manifold (Results 1 - 25 of 93) sorted by null

1 2 3 4

  /external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/com/badlogic/gdx/physics/box2d/
Manifold.java 21 public class Manifold {
22 org.jbox2d.collision.Manifold manifold; field in class:Manifold
30 Manifold () {
33 protected Manifold (org.jbox2d.collision.Manifold manifold) {
34 this.manifold = manifold;
38 org.jbox2d.collision.Manifold.ManifoldType type = manifold.type
    [all...]
WorldManifold.java 21 /** This is used to compute the current state of a contact manifold. */
31 protected WorldManifold (org.jbox2d.collision.WorldManifold manifold) {
32 normal.set(manifold.normal.x, manifold.normal.y);
33 for (int i = 0; i < manifold.points.length; i++) {
34 points[i].set(manifold.points[i].x, manifold.points[i].y);
36 numContactPoints = manifold.points.length;
37 separations[0] = manifold.separations[0];
38 separations[1] = manifold.separations[1]
    [all...]
ContactListener.java 28 * careful, you can modify the contact manifold (e.g. disable contact). A copy of the old manifold is provided so that you can
33 public void preSolve (Contact contact, Manifold oldManifold);
37 * manifold does not include time of impact impulses, which can be arbitrarily large if the sub-step is small. Hence the
  /external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/
com.badlogic.gdx.physics.box2d.Manifold.cpp 1 #include <com.badlogic.gdx.physics.box2d.Manifold.h>
11 b2Manifold* manifold = (b2Manifold*)addr; local
12 return manifold->type;
22 b2Manifold* manifold = (b2Manifold*)addr; local
23 return manifold->pointCount;
34 b2Manifold* manifold = (b2Manifold*)addr; local
35 values[0] = manifold->localNormal.x;
36 values[1] = manifold->localNormal.y;
48 b2Manifold* manifold = (b2Manifold*)addr; local
49 values[0] = manifold->localPoint.x
61 b2Manifold* manifold = (b2Manifold*)addr; local
    [all...]
com.badlogic.gdx.physics.box2d.Contact.cpp 12 b2WorldManifold manifold; local
13 contact->GetWorldManifold(&manifold);
16 tmp[0] = manifold.normal.x;
17 tmp[1] = manifold.normal.y;
21 tmp[2 + i*2] = manifold.points[i].x;
22 tmp[2 + i*2+1] = manifold.points[i].y;
25 tmp[6] = manifold.separations[0];
26 tmp[7] = manifold.separations[1];
  /external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Collision/
b2CollideCircle.cpp 24 b2Manifold* manifold,
28 manifold->pointCount = 0;
42 manifold->type = b2Manifold::e_circles;
43 manifold->localPoint = circleA->m_p;
44 manifold->localNormal.SetZero();
45 manifold->pointCount = 1;
47 manifold->points[0].localPoint = circleB->m_p;
48 manifold->points[0].id.key = 0;
52 b2Manifold* manifold,
56 manifold->pointCount = 0
    [all...]
b2Collision.h 59 /// A manifold point is a contact point belonging to a contact
60 /// manifold. It holds details related to the geometry and dynamics
62 /// The local point usage depends on the manifold type:
71 b2Vec2 localPoint; ///< usage depends on manifold type
77 /// A manifold for two touching convex shapes.
81 /// The local point usage depends on the manifold type:
104 b2Vec2 localPoint; ///< usage depends on manifold type
106 int32 pointCount; ///< the number of manifold points
109 /// This is used to compute the current state of a contact manifold.
112 /// Evaluate the manifold with supplied transforms. This assume
    [all...]
b2Collision.cpp 22 void b2WorldManifold::Initialize(const b2Manifold* manifold,
26 if (manifold->pointCount == 0)
31 switch (manifold->type)
36 b2Vec2 pointA = b2Mul(xfA, manifold->localPoint);
37 b2Vec2 pointB = b2Mul(xfB, manifold->points[0].localPoint);
53 normal = b2Mul(xfA.q, manifold->localNormal);
54 b2Vec2 planePoint = b2Mul(xfA, manifold->localPoint);
56 for (int32 i = 0; i < manifold->pointCount; ++i)
58 b2Vec2 clipPoint = b2Mul(xfB, manifold->points[i].localPoint);
69 normal = b2Mul(xfB.q, manifold->localNormal)
    [all...]
b2CollideEdge.cpp 27 void b2CollideEdgeAndCircle(b2Manifold* manifold,
31 manifold->pointCount = 0;
77 manifold->pointCount = 1;
78 manifold->type = b2Manifold::e_circles;
79 manifold->localNormal.SetZero();
80 manifold->localPoint = P;
81 manifold->points[0].id.key = 0;
82 manifold->points[0].id.cf = cf;
83 manifold->points[0].localPoint = circleB->m_p;
115 manifold->pointCount = 1
    [all...]
  /external/libgdx/extensions/gdx-bullet/jni/src/custom/gdx/collision/
ContactCache.cpp 5 inline void ContactCacheStarted_CB(btPersistentManifold* const &manifold) {
6 currentContactCache->contactStarted(manifold);
8 inline void ContactCacheEnded_CB(btPersistentManifold* const &manifold) {
9 currentContactCache->contactEnded(manifold);
105 void ContactCache::contactStarted(btPersistentManifold* manifold) {
106 const bool match0 = gdxCheckFilter(manifold->getBody0(), manifold->getBody1());
107 const bool match1 = gdxCheckFilter(manifold->getBody1(), manifold->getBody0());
110 const int idx = indexOf(manifold->getBody0(), manifold->getBody1())
    [all...]
ContactListener.cpp 143 inline void ContactStartedListener_CB_manifold(btPersistentManifold* const &manifold) {
144 currentContactStartedListener->onContactStarted(manifold);
146 inline void ContactStartedListener_CB_object(btPersistentManifold* const &manifold) {
147 currentContactStartedListener->onContactStarted(manifold->getBody0(), manifold->getBody1());
149 inline void ContactStartedListener_CB_value(btPersistentManifold* const &manifold) {
151 ((GdxCollisionObjectBridge*)(manifold->getBody0()->getUserPointer()))->userValue,
152 ((GdxCollisionObjectBridge*)(manifold->getBody1()->getUserPointer()))->userValue);
154 inline void ContactStartedListener_CB_manifold_filter(btPersistentManifold* const &manifold) {
155 const bool match0 = gdxCheckFilter(manifold->getBody0(), manifold->getBody1())
    [all...]
ContactCache.h 54 //virtual void onContactStarted(btPersistentManifold* manifold) = 0;
58 virtual void onContactStarted(btPersistentManifold* manifold, const bool &match0, const bool &match1) = 0;
62 //virtual void onContactEnded(btPersistentManifold* manifold) = 0;
66 //virtual void onContactEnded(btPersistentManifold* manifold, const bool &match0, const bool &match1) = 0;
77 void contactStarted(btPersistentManifold* manifold);
79 void contactEnded(btPersistentManifold* manifold);
  /external/libgdx/extensions/gdx-box2d/gdx-box2d/src/com/badlogic/gdx/physics/box2d/
Manifold.java 21 public class Manifold {
35 protected Manifold (long addr) {
48 b2Manifold* manifold = (b2Manifold*)addr;
49 return manifold->type;
57 b2Manifold* manifold = (b2Manifold*)addr;
58 return manifold->pointCount;
68 b2Manifold* manifold = (b2Manifold*)addr;
69 values[0] = manifold->localNormal.x;
70 values[1] = manifold->localNormal.y;
80 b2Manifold* manifold = (b2Manifold*)addr
    [all...]
WorldManifold.java 21 /** This is used to compute the current state of a contact manifold. */
31 /** Returns the normal of this manifold */
36 /** Returns the contact points of this manifold. Use getNumberOfContactPoints to determine how many contact points there are
42 /** Returns the separations of this manifold, a negative value indicates overlap, in meters. Use getNumberOfContactPoints to
Contact.java 36 /** the world manifold **/
46 /** Get the world manifold. */
65 b2WorldManifold manifold;
66 contact->GetWorldManifold(&manifold);
69 tmp[0] = manifold.normal.x;
70 tmp[1] = manifold.normal.y;
74 tmp[2 + i*2] = manifold.points[i].x;
75 tmp[2 + i*2+1] = manifold.points[i].y;
78 tmp[6] = manifold.separations[0];
79 tmp[7] = manifold.separations[1]
    [all...]
ContactListener.java 28 * careful, you can modify the contact manifold (e.g. disable contact). A copy of the old manifold is provided so that you can
33 public void preSolve (Contact contact, Manifold oldManifold);
37 * manifold does not include time of impact impulses, which can be arbitrarily large if the sub-step is small. Hence the
  /external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/collision/
Manifold.java 30 * A manifold for two touching convex shapes. Box2D supports multiple types of contact:
35 * The local point usage depends on the manifold type:
51 public class Manifold {
63 /** usage depends on manifold type */
68 /** The number of manifold points. */
72 * creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints.
74 public Manifold() {
85 * Creates this manifold as a copy of the other
89 public Manifold(Manifold other)
    [all...]
WorldManifold.java 33 * This is used to compute the current state of a contact manifold.
65 public final void initialize(final Manifold manifold, final Transform xfA, float radiusA,
67 if (manifold.pointCount == 0) {
71 switch (manifold.type) {
78 Vec2 v = manifold.localPoint;
79 // Transform.mulToOutUnsafe(xfA, manifold.localPoint, pointA);
80 // Transform.mulToOutUnsafe(xfB, manifold.points[0].localPoint, pointB);
83 Vec2 mp0p = manifold.points[0].localPoint;
107 Rot.mulToOutUnsafe(xfA.q, manifold.localNormal, normal)
    [all...]
ManifoldPoint.java 53 * A manifold point is a contact point belonging to a contact
54 * manifold. It holds details related to the geometry and dynamics
56 * The local point usage depends on the manifold type:
65 /** usage depends on manifold type */
75 * Blank manifold point with everything zeroed out.
84 * Creates a manifold point as a copy of the given point
95 * Sets this manifold point form the given one
Collision.java 27 import org.jbox2d.collision.Manifold.ManifoldType;
100 final Manifold manifold1, final Manifold manifold2) {
194 * Compute the collision manifold between two circles.
196 * @param manifold
202 public final void collideCircles(Manifold manifold, final CircleShape circle1,
204 manifold.pointCount = 0;
228 manifold.type = ManifoldType.CIRCLES;
229 manifold.localPoint.set(circle1p)
    [all...]
  /external/libgdx/extensions/gdx-bullet/jni/swig/collision/
btBroadphasePairArray.i 53 btPersistentManifold *manifold = marr[j];
54 if (manifold->getNumContacts() > 0) {
55 *(const btCollisionObject **)&obj0 = manifold->getBody0();
56 *(const btCollisionObject **)&obj1 = manifold->getBody1();
83 btPersistentManifold *manifold = marr[j];
84 if (manifold->getNumContacts() > 0) {
85 *(const btCollisionObject **)&obj0 = manifold->getBody0();
86 *(const btCollisionObject **)&obj1 = manifold->getBody1();
88 result[count++] = ((GdxCollisionObjectBridge*)manifold->getBody1()->getUserPointer())->userValue;
90 result[count++] = ((GdxCollisionObjectBridge*)manifold->getBody0()->getUserPointer())->userValue
    [all...]
  /external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/contacts/
CircleContact.java 26 import org.jbox2d.collision.Manifold;
46 public void evaluate(Manifold manifold, Transform xfA, Transform xfB) {
47 pool.getCollision().collideCircles(manifold, (CircleShape) m_fixtureA.getShape(), xfA,
PolygonContact.java 26 import org.jbox2d.collision.Manifold;
46 public void evaluate(Manifold manifold, Transform xfA, Transform xfB) {
47 pool.getCollision().collidePolygons(manifold, (PolygonShape) m_fixtureA.getShape(), xfA,
ChainAndCircleContact.java 26 import org.jbox2d.collision.Manifold;
51 public void evaluate(Manifold manifold, Transform xfA, Transform xfB) {
54 pool.getCollision().collideEdgeAndCircle(manifold, edge, xfA,
  /external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionDispatch/
btCollisionDispatcher.cpp 105 btPersistentManifold* manifold = new(mem) btPersistentManifold (body0,body1,0,contactBreakingThreshold,contactProcessingThreshold); local
106 manifold->m_index1a = m_manifoldsPtr.size();
107 m_manifoldsPtr.push_back(manifold);
109 return manifold;
112 void btCollisionDispatcher::clearManifold(btPersistentManifold* manifold)
114 manifold->clearManifold();
118 void btCollisionDispatcher::releaseManifold(btPersistentManifold* manifold)
124 clearManifold(manifold);
126 int findIndex = manifold->m_index1a;
132 manifold->~btPersistentManifold()
    [all...]

Completed in 1811 milliseconds

1 2 3 4