WVehicles and Physical zones
by Andrea Bigiarini · in Torque Game Engine · 10/06/2004 (5:50 am) · 5 replies
Sorry pals but this is a ig problem that I have ....
->> Physical Zone doesn't work with wheeled Vehicles <<-
Any solution?
This is a question I've posted 3 months ago with no answer by anyone of the forum.
THX you all for tell me if someone can give me an hint.
Andrea Bigiarini
->> Physical Zone doesn't work with wheeled Vehicles <<-
Any solution?
This is a question I've posted 3 months ago with no answer by anyone of the forum.
THX you all for tell me if someone can give me an hint.
Andrea Bigiarini
#2
As best i can tell, this will fix your problem....
in wheeledVehicle.cc, at line 918, just under this section of code....
Insert the following two lines and then rebuild your .exe...
mAppliedForce is done in the shapebase section of the engine so this should enable the wheeled vehicle class to use the PhysicalZone effects.
10/06/2004 (9:01 am)
Hmmmm, this may be easier than I thought...As best i can tell, this will fix your problem....
in wheeledVehicle.cc, at line 918, just under this section of code....
// Container drag & buoyancy mRigid.force += Point3F(0, 0, -mBuoyancy * sWheeledVehicleGravity * mRigid.mass); mRigid.force -= mRigid.linVelocity * mDrag; mRigid.torque -= mRigid.angMomentum * mDrag;
Insert the following two lines and then rebuild your .exe...
// Gonzo - add zone forces to wheeled class mRigid.force += mAppliedForce;
mAppliedForce is done in the shapebase section of the engine so this should enable the wheeled vehicle class to use the PhysicalZone effects.
#3
Very very thanks, I was temped to let TGE in the deepest part of my Hard Disk ... sometimes TGE is so frustrating ...
So I will try your code ASAP
You're my favourite clown ....
Cheers
Andrea
10/31/2004 (8:03 am)
Sorry Gonzo to reply so later ... busy as usual.Very very thanks, I was temped to let TGE in the deepest part of my Hard Disk ... sometimes TGE is so frustrating ...
So I will try your code ASAP
You're my favourite clown ....
Cheers
Andrea
#4
YOU're #1 ,.....
:(( Only 1 line of code S**T
There are 3 things that drive me crazy, and are:
A. The "1800Kgs car and a 20Kgs Barrel" situation - If I hit the barrell with my car - the barrell stand still.
B. Collision Between Player's cars - No physic is applied in this kind of collision and dunno why ...
C. Swapping Various cameras with some keys associated or entering in a trigger.
The fourth was Vehicles and Physical Zones.
But this is another story
THX Again
You have focused the problem where MANY others have failed.
Andrea
P.S. Pass this tip (WVehicles Physical Zone Blues) to the community.
Good shot!
10/31/2004 (8:39 am)
IT WORKS!!!!YOU're #1 ,.....
:(( Only 1 line of code S**T
There are 3 things that drive me crazy, and are:
A. The "1800Kgs car and a 20Kgs Barrel" situation - If I hit the barrell with my car - the barrell stand still.
B. Collision Between Player's cars - No physic is applied in this kind of collision and dunno why ...
C. Swapping Various cameras with some keys associated or entering in a trigger.
The fourth was Vehicles and Physical Zones.
But this is another story
THX Again
You have focused the problem where MANY others have failed.
Andrea
P.S. Pass this tip (WVehicles Physical Zone Blues) to the community.
Good shot!
#5
There are 3 things that drive me crazy, and are:
A. The "1800Kgs car and a 20Kgs Barrel" situation - If I hit the barrell with my car - the barrell stand still.
B. Collision Between Player's cars - No physic is applied in this kind of collision and dunno why ...
C. Swapping Various cameras with some keys associated or entering in a trigger.
About those 3 things... As always dude, you know my email, don't waste hours and hours getting frustrated over something you can't fix right away. Next time you start to get frustrated is exactly when you should take a deep breath and make a post at the forums or send me a mail.
11/04/2004 (8:17 pm)
Glad to hear it worked out for you. Most things are not that easy to cure, but fortunately, some are.There are 3 things that drive me crazy, and are:
A. The "1800Kgs car and a 20Kgs Barrel" situation - If I hit the barrell with my car - the barrell stand still.
B. Collision Between Player's cars - No physic is applied in this kind of collision and dunno why ...
C. Swapping Various cameras with some keys associated or entering in a trigger.
About those 3 things... As always dude, you know my email, don't waste hours and hours getting frustrated over something you can't fix right away. Next time you start to get frustrated is exactly when you should take a deep breath and make a post at the forums or send me a mail.
Torque Owner Gonzo T. Clown
I'm looking into this for you to see if I can implement it. Don't get too excited though, I may not have the skills needed to do so.
Back to you as soon as I know something.