public:t-vien-10-3:lab_4_materials:physx
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:t-vien-10-3:lab_4_materials:physx [2010/10/07 01:19] – claudio | public:t-vien-10-3:lab_4_materials:physx [2024/04/29 13:33] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Factory Scene with PhysX (unfairly only for Windows) ====== | ====== Factory Scene with PhysX (unfairly only for Windows) ====== | ||
| - | The Panda 1.7.0 distribution comes with a Python exposure for PhysX, which is called Panda PhysX. Panda PhysX is a Python library you will use to access the Physx API from a Panda script.\\ | + | The Panda 1.7.0 distribution comes with a Python exposure for PhysX, which is called Panda PhysX. Panda PhysX is a Python library you will use to access the Physx API from a Panda script.  | 
| - |   - To begin with, you need to import the Panda PhysX classes  | + |   - For this to work,  you need to first install [[http:// | 
| + |   - In your code, you need to import the Panda PhysX classes.< | ||
| from panda3d.physx import PhysxManager | from panda3d.physx import PhysxManager | ||
| from panda3d.physx import PhysxEnums | from panda3d.physx import PhysxEnums | ||
| Line 74: | Line 75: | ||
| joint.addLimitPlane(Vec3( 1, 0, 0), Point3(-1, 0, 0))</ | joint.addLimitPlane(Vec3( 1, 0, 0), Point3(-1, 0, 0))</ | ||
|   - Finally, make sure to remove all previous collision handling, since PhysX will take care of it from now on. Unfortunately, |   - Finally, make sure to remove all previous collision handling, since PhysX will take care of it from now on. Unfortunately, | ||
| - |   - For extra awesomeness try the following: Create an instance of a AcmeBox every time you press the mouse button. Maintain a list of created boxes in your factory and iterate over that list in the simulate  | + |   - For extra awesomeness try the following: Create an instance of an AcmeBox every time you press the mouse button. Maintain a list of created boxes in your factory and iterate over that list in the simulation  | 
/var/www/cadia.ru.is/wiki/data/attic/public/t-vien-10-3/lab_4_materials/physx.1286414368.txt.gz · Last modified: 2024/04/29 13:33 (external edit)