Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Physics collisions issue

Author
Message
XANAX 2B
21
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Corsica (France)
Posted: 24th May 2016 08:03 Edited at: 24th May 2016 08:37
Hello

I'm having an issue with the physics collisions.
I just position some dices around the camera and let them fall with the gravity.
But rarely and randomly, two or three dices seems to be glued together, and because of that, they can't fall anymore.
They just go up and down, searching for way to unglue, but nothing.

Any idea ?



God is ALIVE
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 24th May 2016 10:52
Most likely a scale issue. Make the dice bigger and they shouldn't get stuck.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 24th May 2016 11:29
As CJB says, if your dice are smaller than 3.5 units then the Physics engine will fail. You have to change the Physic scale when you start it (the default scale is 40), or increase your object sizes.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
XANAX 2B
21
Years of Service
User Offline
Joined: 20th Jun 2003
Location: Corsica (France)
Posted: 24th May 2016 12:04
Thanks a lot
God is ALIVE
Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 24th May 2016 14:42 Edited at: 25th May 2016 14:32
You code is not a runnable project so I can not duplicate the issue.
FYI you can not scale an object after making it a physics object.

P.S. Posting just a function from your project is unacceptable.
The coffee is lovely dark and deep,and I have code to write before I sleep.

Login to post a reply

Server time is: 2024-11-25 05:48:26
Your offset time is: 2024-11-25 05:48:26