Bouncing projectiles
by Zac Cassini · in Torque Game Engine · 06/06/2003 (3:56 pm) · 4 replies
Is there an easy way to script projectiles so that they can bounce off of walls trees or whatever. I've tried messing with some of the projectile variables but have had no luck.
I could measure its speed and send it back from the direction it came or whatever but im hoping maybe theres an easier way.
Anyone know?
I could measure its speed and send it back from the direction it came or whatever but im hoping maybe theres an easier way.
Anyone know?
#2
06/06/2003 (4:43 pm)
thanks I'll look into the arming delay.
#3
06/06/2003 (4:49 pm)
You need to use these variables to help make bouncing projectiles:isBalastic = true; // this true if you want to bounce armingDelay = ; // set it to something(in ms) bounceElasticity = ; // set this to something range:[0, .999] bounceFriction = ; // set this to something range:[0, 1] gravitymod = ; // set this to something range:[0, 1]
#4
06/11/2003 (5:02 am)
thanks guys. the arming delay is what i didnt think to change.
Torque Owner Badguy
once the item strikes something the arming delay begins.
the object should alredy bounce of something if it does not explode. (wich the arming delay would stop the immediate explosion)