toglia
24-03-2008 22:53:20
Hey!
Well, the title says it all, how to make actors interact inside another actors?
Lets say you have this Big sphere and you need to put some other spheres inside! (everyone bouncing around like crazy!)
If I do something like this:
mScene->createBody("sphere.10m.mesh", new SphereShape(5.0f), Vector3(0,10,0));
mScene->createBody("sphere.2m.mesh", new SphereShape(1.0f), Vector3(0,10,0));
The little sphere seems to bounce out rapidly from the big one.
I have tried reversing the normals... (A simple guess...)
Normally I would read some documentation till I find something, in this case where there is so little, some code would be helpfull!
Another thing, is PhysX free to use on commercial games?
Thanks!!!
Well, the title says it all, how to make actors interact inside another actors?
Lets say you have this Big sphere and you need to put some other spheres inside! (everyone bouncing around like crazy!)
If I do something like this:
mScene->createBody("sphere.10m.mesh", new SphereShape(5.0f), Vector3(0,10,0));
mScene->createBody("sphere.2m.mesh", new SphereShape(1.0f), Vector3(0,10,0));
The little sphere seems to bounce out rapidly from the big one.
I have tried reversing the normals... (A simple guess...)
Normally I would read some documentation till I find something, in this case where there is so little, some code would be helpfull!
Another thing, is PhysX free to use on commercial games?
Thanks!!!