Search found 4 matches

by mnunesvsc
Wed Jun 19, 2019 1:52 pm
Forum: General Bullet Physics Support and Feedback
Topic: [SOLVED] Collision callback and sphereshape
Replies: 4
Views: 4930

Re: Collision callback and sphereshape

THANK YOU very much. that was exactly what i was in need, just the first touch of collision worked like a charm, many, many thanks for the help and to help someone else who can be on the same problem. I was retrieving objects colided by the body pointer, but i can extract the same information from m...
by mnunesvsc
Mon Jun 03, 2019 2:17 pm
Forum: General Bullet Physics Support and Feedback
Topic: [SOLVED] Collision callback and sphereshape
Replies: 4
Views: 4930

Re: Collision callback and sphereshape

I use; gContactProcessedCallback like this // retrieve objects colided. btCollisionObject* o1 = static_cast<btCollisionObject*>(body0); btCollisionObject* o2 = static_cast<btCollisionObject*>(body1); int o1idx = o1->getUserIndex(); int o2idx = o2->getUserIndex(); // detect the object hited switch(o1...
by mnunesvsc
Wed May 15, 2019 2:36 pm
Forum: General Bullet Physics Support and Feedback
Topic: [SOLVED] Collision callback and sphereshape
Replies: 4
Views: 4930

[SOLVED] Collision callback and sphereshape

I am using bullet for physiscs and collision detection for a game, and on my callback code, i can capture all colisions, except sphere vs sphere, is something i am doing wrong the collision is ocurring because the objects are deflected but the bodies are not coming to the callback here follow some c...
by mnunesvsc
Tue Apr 05, 2016 2:15 pm
Forum: General Bullet Physics Support and Feedback
Topic: Compiling on Win32 - Mingw 2.7.1
Replies: 0
Views: 3853

Compiling on Win32 - Mingw 2.7.1

Need to add flag -fpermissive but somehow got an error cd /d C:\DvlpC++\bullet3\x86\mingw\examples\HelloWorld && C:\mingw\bin\windres.exe -O coff -DUSE_GRAPHICAL_BENCHMARK -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -IC:\DvlpC++\bullet3\src -fpermissive C:\...