Search found 29 matches

by paokakis
Thu Apr 21, 2022 5:48 pm
Forum: General Bullet Physics Support and Feedback
Topic: How to create a homing missile?
Replies: 7
Views: 14567

Re: How to create a homing missile?

Thank you for the replies DrLeviathan. I reduced the exponential time scale and the results are much better now
by paokakis
Fri Apr 08, 2022 5:09 pm
Forum: General Bullet Physics Support and Feedback
Topic: How to create a homing missile?
Replies: 7
Views: 14567

Re: How to create a homing missile?

I know that this is an old topic but here I go. I am using the code that DrLeviathan has provided with pretty good results. My problem is that once in a while the missile won't hit the target but will go around the target in a spherical loop. Any pointers what could be optimized to fix this?
by paokakis
Mon Feb 21, 2022 2:00 pm
Forum: General Bullet Physics Support and Feedback
Topic: Bullet skeletal animation
Replies: 4
Views: 8319

Re: Bullet skeletal animation

Thank you for the extended answer. Did not have the time to test this yet. By the way did you think to make some Bullet tutorials on Youtube? You are one of the most active members here
by paokakis
Wed Feb 16, 2022 5:36 pm
Forum: General Bullet Physics Support and Feedback
Topic: Bullet skeletal animation
Replies: 4
Views: 8319

Re: Bullet skeletal animation

Thanks for the quick answer. I'm using the C++ library indeed :) . To elaborate a bit, I am developing a game and I am using a 3D object with bones with animation information in an .fbx file. I am using OpenGL for graphics and as many sources exist on OpenGL skeletal animation this is happening in t...
by paokakis
Wed Feb 16, 2022 2:36 pm
Forum: General Bullet Physics Support and Feedback
Topic: Bullet skeletal animation
Replies: 4
Views: 8319

Bullet skeletal animation

Hello to the group, I'm using opengl and want to implement skeletal animation on imported objects. Currently the animation will be handled on the gpu(vertex shader) and I need to synchronize this with the rigid bodies. Any ideas on how to proceed? P.S I don't have any code yet for this as I am doing...
by paokakis
Tue Feb 01, 2022 12:26 pm
Forum: General Bullet Physics Support and Feedback
Topic: Bullet coloring triangles
Replies: 0
Views: 21521

Bullet coloring triangles

Hello to the group, I am using bullet physics together with OpenGL. I am trying to find a way to get the current collided triangle from a mesh in bullet and color it in OpenGL. Is there a way to do that? I noticed this callback "gContactAddedCallback" which is meant to be used for this rea...
by paokakis
Thu Jan 13, 2022 9:40 pm
Forum: General Bullet Physics Support and Feedback
Topic: Jittering and shaking when moving a rigidBody
Replies: 20
Views: 29050

Re: Jittering and shaking when moving a rigidBody

I tried with a custom delta time but this didn't work either. I reverted to my old settings. The only solution that I have is pass 0 as substeps in the stepSimulation. Now I have decent results. If there is no problem with that we can consider this item as closed. Thanks for all your support, I real...
by paokakis
Thu Jan 13, 2022 12:37 pm
Forum: General Bullet Physics Support and Feedback
Topic: Setting up bullet physics multithreading
Replies: 1
Views: 8416

Re: Setting up bullet physics multithreading

Interested. Did you add

Code: Select all

#define BT_THREADSAFE = 1
?
by paokakis
Thu Jan 13, 2022 10:50 am
Forum: General Bullet Physics Support and Feedback
Topic: Jittering and shaking when moving a rigidBody
Replies: 20
Views: 29050

Re: Jittering and shaking when moving a rigidBody

Hello, Thanks for the reply. I'm actually making the Camera follow the spaceship with a Lerp on the position. That's what makes the spaceship shaking. If I don't use Lerp then the Camera is fixed to the spaceship. Then the spaceship is not jittering but the background is. I'm at work at the moment b...
by paokakis
Wed Jan 12, 2022 9:07 pm
Forum: General Bullet Physics Support and Feedback
Topic: Jittering and shaking when moving a rigidBody
Replies: 20
Views: 29050

Re: Jittering and shaking when moving a rigidBody

Hi Again, First of all thanks for all your time that you spend on this. You can take a look to see the video https://www.youtube.com/watch?v=VLHajXpz2VQ with the jitter so that you will have a better understanding of what is happening. I tried some things with the most promising setting the fixedSte...
by paokakis
Tue Jan 11, 2022 3:49 pm
Forum: General Bullet Physics Support and Feedback
Topic: Jittering and shaking when moving a rigidBody
Replies: 20
Views: 29050

Re: Jittering and shaking when moving a rigidBody

After a lot of trying I still get the jitter when I set the substeps bigger than 0. substeps : maxSubsteps = static_cast<int>(delta / (1.f / 60.0f) + 0.5f) + 1; motion state : void SpaceShipMotionState::getWorldTransform(btTransform& worldTrans) const { float yaw, pitch, roll; auto p = spaceship...
by paokakis
Sun Jan 09, 2022 5:52 pm
Forum: General Bullet Physics Support and Feedback
Topic: Jittering and shaking when moving a rigidBody
Replies: 20
Views: 29050

Re: Jittering and shaking when moving a rigidBody

Hi again, I implemented your first two suggestions with minor improvements. First of all now irrelevant of frame rate I get the same response from the physics engine, for example the maximum velocity of the spaceship is the same with 10 fps and with 60 fps but the jitter is still there. only on low ...
by paokakis
Fri Jan 07, 2022 6:07 pm
Forum: General Bullet Physics Support and Feedback
Topic: Jittering and shaking when moving a rigidBody
Replies: 20
Views: 29050

Re: Jittering and shaking when moving a rigidBody

Thanks for the quick reply @drleviathan. I am indeed using applyForce() but when I use stepSimulation with substeps = 0 mpDynamicsWorld->stepSimulation(delta, 0); the movement is fine I only get jitter on retrieving the rotation. So when I move my mouse to rotate the Spaceship in my game I get a stu...
by paokakis
Fri Jan 07, 2022 5:55 pm
Forum: General Bullet Physics Support and Feedback
Topic: Bullet crash
Replies: 4
Views: 5899

Re: Bullet crash

Thank you for your analysis, it was helpful. I moved around some code and modified the tickcallback function and finally I am crash free. The problem was that I was removing objects from the bullet library while I was iterating through the objects at the same time. My fault, and bullet didn't like i...
by paokakis
Wed Jan 05, 2022 9:45 pm
Forum: General Bullet Physics Support and Feedback
Topic: Jittering and shaking when moving a rigidBody
Replies: 20
Views: 29050

Re: Jittering and shaking when moving a rigidBody

Interested, have the same problem. I know it is an old post but I was wondering if someone found any solutions for this