Search found 3 matches

by Ziket
Wed Apr 12, 2017 2:02 pm
Forum: General Bullet Physics Support and Feedback
Topic: btIDebugDraw with OpenGL 4.4 - [SOLVED]
Replies: 9
Views: 15037

Re: btIDebugDraw with OpenGL 4.4 - [SOLVED]

Use this in your DrawLine and it will work fine (with the correct colors represent the normals) First u have to compile you program! Dont forgot it, and multiply the gl_FragPosition with the view and projection matrix (the position is getter in world pos) struct btLine{ GLfloat vertices[6]; btLine(c...
by Ziket
Thu Mar 23, 2017 11:33 am
Forum: General Bullet Physics Support and Feedback
Topic: Mass not effecting dynamic rigid bodies?
Replies: 8
Views: 12918

Re: Mass not effecting dynamic rigid bodies?

Is this to do with my stepSimulation()? I'm currently doing dynamicsWorld->stepSimulation(1 / 60.f, 10) but I've tried using deltaTime and my object just instantly appears on the ground then, it's so fast. When I draw the scene with a debug drawer, the object seems to be falling as expected (with d...
by Ziket
Thu Mar 23, 2017 11:21 am
Forum: General Bullet Physics Support and Feedback
Topic: [SOLVED] Best method for firing projectiles from camera?
Replies: 7
Views: 10595

Re: Best method for firing projectiles from camera?

Hi!.
You can try get information in this page: https://learnopengl.com/#!Getting-started/Camera
Here is some information about how to get and use the forward and the up vector of the camera :D :D :D