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 / SetObject3DPhysicsRestitution dose not work

Author
Message
haliop_New
User Banned
Posted: 29th Oct 2016 18:05 Edited at: 29th Oct 2016 18:05
I have tried using this on a dynamic physic object but nothing really happens
the balls falls on a static object and just stay there
code :




so it creates a player box with static attributes on to it then places the ball above it with enough space on the y axis so it would count as for restitution should
when I run the project the ball falls and stay on the static player object.

any thoughts ??


thank you for your time
haliop.
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: 30th Oct 2016 01:14
First do not post a title that something does not work. The physics code was tested and works.
Instead next time post that you are having a problem understanding how it works.
Also post an example that is runnable to show the problem.
Now to the problem,
1. Restitution is a float 0.0 to 1.0
2. You must set restitution for both objects static and dynamic.
The coffee is lovely dark and deep,and I have code to write before I sleep.
haliop_New
User Banned
Posted: 1st Nov 2016 12:59
aha ok thank you
sorry for posting an unsuitable title.

Login to post a reply

Server time is: 2024-09-29 19:15:43
Your offset time is: 2024-09-29 19:15:43