Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!

We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Member Since 16 Dec 2012
Offline Last Active Mar 12 2013 10:54 PM

Topics I've Started

Get RigidBody from rayTest() in Bullet Physics

16 December 2012 - 04:38 PM

I've recently started implementing physics in my game. I'm using the java port of the bullet physics engine. I'm trying to interact with rigid bodies in my scene using rayTest() to select what rigid body to interact with. I'm confused on the correct way of using the rayTest(start, end, callback) function. From my callback I can retrieve a CollisionBody but I need a RigidBody. I'm wondering If I'm about the this the wrong way. Thanks.