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.

Dark GDK / PhysX issue

Author
Message
Yero008
13
Years of Service
User Offline
Joined: 5th Dec 2010
Location: Romania
Posted: 27th Mar 2011 18:30 Edited at: 27th Mar 2011 18:31
I just started with Nvidia Physx and the Fulcrum plug-in and I have a problem. When I start the demo the sphere's fall and have physics, but if I copy the code and copile the code the spheres don't fall. Can someone tell me why?
Here's the code:


Forward thanks!
Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 27th Mar 2011 18:55 Edited at: 27th Mar 2011 18:58
Hi Yero,

This example was put together using an early version, the way you do things have changed slightly I think.

Look at one of the demo's included with the download, here is the football demo:



Take a look at the simulate() and getPhysicsResults() commands, this is probably your problem.

I need to update that first demo to the latest version.

EDIT: The raycast commands may have changed slightly in the latest version so this demo may need updating too, This demo should still help with your issue though, even if it will not compile, sorry.

Yero008
13
Years of Service
User Offline
Joined: 5th Dec 2010
Location: Romania
Posted: 27th Mar 2011 19:05
Many thanks! I solved the problem by adding:
myPhysics.getPhysicsResults();
myPhysics.simulate();

Login to post a reply

Server time is: 2024-06-16 00:00:39
Your offset time is: 2024-06-16 00:00:39