Weird physic behavior
by Yanuar Tanzil · in Torque Game Builder · 02/18/2009 (5:31 am) · 1 replies
Hi,
I've been evaluating TGB for the last two days, mostly on the physics feature of TGB. Notice since I've only doing this for the last couple of days this might be my mistake and not the problem with TGB itself.
Anyway, after I play around I found something abit weird in the simulation. What I did was :
1. I make two objects, one is a circle and the other is a box. The idea is to bounce the ball with the box.
2. I apply constant force to the ball to emulate gravity (y=10) set the collision shape to circle, collision type to rigid and turn on both send and receive physic parameters.
3. I also add damping factor to 0.5 to the ball
4. For the box, I didn't change any physic properties, set the collision shape to polygon, collision type to rigid and only turned on "send physic"
What happened was, the ball dropped and bounced nicely and then since it was damped the ball stopped to bounce and stayed at top of the box.
This is good simulation so far, but then after awhile, the ball slowly but sure passing through the box till it passed through the box completely.
Is the something normal with the physic calculation ? is there something that I should do to prevent this from happening?
I'm evaluating TGB for my games which somewhat will rely heavily on good physic so I really hope this isnt a permanent bug.
Thanks
I've been evaluating TGB for the last two days, mostly on the physics feature of TGB. Notice since I've only doing this for the last couple of days this might be my mistake and not the problem with TGB itself.
Anyway, after I play around I found something abit weird in the simulation. What I did was :
1. I make two objects, one is a circle and the other is a box. The idea is to bounce the ball with the box.
2. I apply constant force to the ball to emulate gravity (y=10) set the collision shape to circle, collision type to rigid and turn on both send and receive physic parameters.
3. I also add damping factor to 0.5 to the ball
4. For the box, I didn't change any physic properties, set the collision shape to polygon, collision type to rigid and only turned on "send physic"
What happened was, the ball dropped and bounced nicely and then since it was damped the ball stopped to bounce and stayed at top of the box.
This is good simulation so far, but then after awhile, the ball slowly but sure passing through the box till it passed through the box completely.
Is the something normal with the physic calculation ? is there something that I should do to prevent this from happening?
I'm evaluating TGB for my games which somewhat will rely heavily on good physic so I really hope this isnt a permanent bug.
Thanks
Torque 3D Owner Darius
Since your ball is doing most of the moving, it should have send collisions on, and since you want the ball to collide with the box, the box should have receive collisions on. The same goes for sending and receiving physics.
Give that a try and see if it solves your problem. I'm not sure if you will have access to it since you don't own the engine, but this document describes collision response very well. It's a bit long, but a good read.