Search found 3 matches

by zb10948
Sun Nov 07, 2021 5:47 pm
Forum: General Bullet Physics Support and Feedback
Topic: Can't get rotation from applyForce's rel_pos
Replies: 1
Views: 2628

Can't get rotation from applyForce's rel_pos

Hello, I'm unable to achieve 'natural' rotation of a rigidbody by modifiying the position from centre of mass to offseted. btVector3 force(-1, 0, 0); force *= 13.0f; btVector3 thrust_position(0, 1.7, 0); btVector3 com = body->getCenterOfMassPosition(); thrust_position += com; body->applyForce(force,...
by zb10948
Fri Sep 10, 2021 10:12 pm
Forum: General Bullet Physics Support and Feedback
Topic: btCompoundShape of convex hulls not rendering in BasicExample
Replies: 3
Views: 3333

Re: btCompoundShape of convex hulls not rendering in BasicExample

Thank you, it gets displayed now. I wasn't aware I need to call setIdentity() to load the defaults.
by zb10948
Fri Sep 10, 2021 4:32 pm
Forum: General Bullet Physics Support and Feedback
Topic: btCompoundShape of convex hulls not rendering in BasicExample
Replies: 3
Views: 3333

btCompoundShape of convex hulls not rendering in BasicExample

Hello, I've been looking into bullet for some simulation of rigid bodies with multiple hulls or collision sections. For start i use infrastructure provided by BasicExample for some POCs. By creating two btConvexHulls and their bodies I get the exact shapes on screen. When I try to do the same via bt...