Search found 4 matches

by romanshuvalov
Sat Jan 06, 2018 6:22 pm
Forum: General Bullet Physics Support and Feedback
Topic: Custom broadphase filter for city-sized world, need advice
Replies: 4
Views: 4256

Re: Custom broadphase filter for city-sized world, need advice

You are right, performance is high enough. After ~15k static objects my frame rate dropped significantly, however, I'm not sure if it's bullet's fault or not. Anyway, I've decided to load objects on the fly (player will never reach ~50..70% of all objects) and I believe this is all solution I need. ...
by romanshuvalov
Tue Jan 02, 2018 1:18 pm
Forum: General Bullet Physics Support and Feedback
Topic: Custom broadphase filter for city-sized world, need advice
Replies: 4
Views: 4256

Custom broadphase filter for city-sized world, need advice

Greetings. I have: 1) City-sized world with top-down view. 2) World is logically "flat", I mean there are no multi-level constructions where a lot of objects stack on each other, but there are btHeightfieldTerrainShape() surface and 3D stuff (jumping etc). 3) 90% of objects are static (bui...
by romanshuvalov
Sat May 07, 2016 10:47 am
Forum: General Bullet Physics Support and Feedback
Topic: How to keep object stay straight vertically (Roly-poly toy)?
Replies: 2
Views: 13598

Re: How to keep object stay straight vertically (Roly-poly t

First problem is solved. Applied up.dot(gravity) torque around up.cross(gravity) axis. Worked fine for car. I've powered torque value to torque^3 so it pushes softly when body is almost straight and hardly when it tilted more or flipped over. Didn't tested on character yet because character is not i...
by romanshuvalov
Fri May 06, 2016 5:57 pm
Forum: General Bullet Physics Support and Feedback
Topic: How to keep object stay straight vertically (Roly-poly toy)?
Replies: 2
Views: 13598

How to keep object stay straight vertically (Roly-poly toy)?

Greetings. I need to prevent vehicles from flipping over and also keep human characters stay vertically. But it should be "soft" so objects can shake in about +/- 30-degree away from vertical gravity axis due to hitting bumps or get impacts from other objects or something so it will look n...