Physics ?

Posted By: vertex

Physics ? - 03/11/10 17:53

Using 3DGS physics. Why is the object with this object going half way through floor and bouncing up and down...
I've tried adjusting, so settings below are one of many tried.

Box and sphere are okay, but I get the same problem with poly physics.



action cylinder(){


ph_setgravity (vector(0, 0, -300)); // set the gravity
phent_settype (my, PH_RIGID, PH_CYLINDER); // set the physics entity type
phent_setmass (my, 10, PH_CYLINDER); // and its mass
phent_setfriction (my, 80); // set the friction
phent_setdamping (my, 100, 100); // set the damping
phent_setelasticity (my, 10, 10); // set the elasticity
}
Posted By: sebbi91

Re: Physics ? - 03/12/10 17:53

cylinder and polygon physics dosen't work under 3d gamestudio as well!
Sometimes it works, but' seldom ^^

If you really need cylinder than use Newton or PhysX.
Posted By: ventilator

Re: Physics ? - 03/12/10 18:00

physx doesn't support cylinders either. it originally was based on ode so maybe that's the reason? tongue

newton and bullet support cylinders though.
Posted By: alibaba

Re: Physics ? - 03/12/10 18:40

try to set c_setminmax(me); at the beginning of your action. maybe the collision box isnt applied right.
Posted By: darkinferno

Re: Physics ? - 03/12/10 21:11

c_setminmax wont work, you can and should only use PH_BOX and PH_SPHERE for moving entities....
Posted By: PigHunter

Re: Physics ? - 03/12/10 21:50

Yeah, darkinferno is correct...c'mon, read the manual you guys!!!
Posted By: KlongKiller

Re: Physics ? - 03/20/10 23:50

Seriously I have learned so much more from the manual and tinkering then from forums!!
© 2024 lite-C Forums