Giter Club home page Giter Club logo

Comments (5)

badlogic avatar badlogic commented on May 1, 2024

From [email protected] on June 08, 2010 20:19:42

I could add to elaborate. In my example i have a few things going on. setUserData on each body to give it a unique name for the test. There are bounding boxes that surround the world. If the player collides with a bounding box, and then in the ContactListener, both getFixtureA().getBody().getUserData() and likewise B will both return "Player" though one should read "BoundingBox". If I fire a bullet from the player, A and B will read "BoundingBox".

from libgdx.

badlogic avatar badlogic commented on May 1, 2024

From [email protected] on June 08, 2010 20:51:51

as one would think, its a silly fix, now if i could just shake off these python roots and figure out how to get my feet dirty and the jni rebuilt ..

Eclipse Workspace Patch 1.0

#P gdx

Index: jni/Box2D/Contact.cpp

--- jni/Box2D/Contact.cpp ( revision 302 )
+++ jni/Box2D/Contact.cpp (working copy)
@@ -86,5 +86,5 @@
(JNIEnv , jobject, jlong addr)
{
b2Contact
contact = (b2Contact*)addr;

  • return (jlong)contact->GetFixtureA();
  • return (jlong)contact->GetFixtureB();
    }

from libgdx.

badlogic avatar badlogic commented on May 1, 2024

From badlogicgames on June 09, 2010 09:36:11

Oh sorry, that happens when you code late at night. I'll fix that asap and update the binaries in SVN. Will also release a new version with the fixes. The Box2D wrapper still needs a lot of testing which i don't have time for at the moment so you guys have to suffer a bit :/

Status: Accepted

from libgdx.

badlogic avatar badlogic commented on May 1, 2024

From [email protected] on June 09, 2010 09:43:34

It's cool, I dont mind testing anything and fixing basic stuff like this. Just the fact that the majority of this is working is an amazing benefit to me.

My dev'ing just comes to a standing halt from stuff like this b/c im to lame to figure out jni compilation stuff

from libgdx.

badlogic avatar badlogic commented on May 1, 2024

From badlogicgames on June 11, 2010 06:27:59

Status: Fixed

from libgdx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.