Page 1 of 1

Whither shootBox()?

Posted: Tue Aug 18, 2015 1:06 am
by aardvark
The api seems to have changed.

I tried re-adding the shootBox code to the BasicExample, and find that it doesn't work as such. I also noticed that a shootbox had been present in the fracture demo which was ifdef'ed out. Creating the object, giving it inertia and adding it to the dynamics world leaves an invisible object.

I can debug the problem, of course, but if there is a working example of something like a shoot box using bullet3 (dynamically added graphics and collision object), it would greatly accelerate what I'm doing, I suspect.

Thanks for any aid in advance.

Re: Whither shootBox()?

Posted: Wed Aug 19, 2015 1:51 am
by aardvark
Sorted out the issue.

Most of the code (getRayTo, createRigidBody) have moved to the CommonRigidBodyBase and CommonCameraInterface objects and their subclasses. It appears that the way that the current rendering works, it would be better to make the shootbox when creating the rest of the collision objects, initialise it outside of the scene, then shoot it when the mouse or keyboard input requests it.

Anyway, thought I'd pass that on if anyone else is looking.