|
Author
|
Topic: Breaking DOFs Broken??
|
jedi Pilot
|
posted 12-22- 05:25 PM
While tinkering with some engine damage stuff, I discovered something a bit distressing: The Famous Breaking DOF Trick can be "fooled."I have a DOF set up to extend an airfoil, and then break off, triggering some engine functions. OK, that works fine. BUT if I take the plane up and spin it, the DOF airfoil breaks off, even though it's NOT extended! Which means the engine functions get triggered just by doing a spin. Which is bad. Thinking I had screwed something up, I took up the P-47, and did a spin. Sure enough, the canopy fell off (while still CLOSED!) On the one hand, this is good, because it means you could, for example, trigger structural damage by going into a spin (I have it set up to rip off the rudder, and this only happens in a spin, which is kinda cool). But, on the other hand, it also means that any clever little breaking DOFs you have set up to trigger specific things like, say, an engine fire extinguisher, can be triggered just by going into some hard manuevers or a spin. So, is there a way to keep a breaking DOF airfoil "deactivated" completely until it's needed? Tried a bunch of stuff, to no avail...
------------------ --jedi-- IP: Logged |
Nat Pilot
|
posted 12-22- 08:07 PM
there is possibly a way, but it's hard to say without knowing more, but my idea comes from the rockets and bombs, with the rockets the airfoils are inactive, and only become active when you detach them by calling a Func, like this:the properties for the airfoil showing the Exec activating the airfoil: (obProto ') (obFunc (activate (airSection 'NACA0012 airK 0.95 airAR 2))) (obFunc (activate (obAirfoil (airChord 0.45 airPT 0.000000, -2.087500, 0.000000 airArea 0.135 )))) The Func calling the aifoil activation: onDetach (obExec (Name 'airfoilV Func 'activate)) I'm sure this method can be tinkered with alot for different applications but like I said, depends on what you need to do hope it helps anyway Jedi ~Nat~ IP: Logged |
ArgonV Pilot
|
posted 12-22- 09:19 PM
Of course theres a way! Set the DOF to break only say after 100 or so. But you may ask... "how do I get it to break off when I want it to?" Thats simple aswell... set the runtime of the DOF to .001 or .01 so its REALLY fast and set the range of the DOF to like .10Or going Nats direction, you could use my airfoil activation/deactivation method. IP: Logged |
Raider Pilot
|
posted 12-22- 11:06 PM
jedi, I found this out the hard way, while working on the fire suppression. The problem is that if something has a dof set to oscBeginDisabled you have to activate it once then deactivate it in order for the properties to be disabled. Here is the workaround. Use oscEndDisabled instead, give it a .01 runtime, Place it's command in the parent object (This will call the command at startup and move the dof to its end position in .01 of a second) which makes the air properties disabled. I am using this on the fire suppression and it works. Before I was able to trigger the extingushers by going into a spin or going into a hard dive and jerk the stick. This is explained more in the following thread, it is a long post, just look toward the bottom for "USING THE DISABLE FEATURE OF A DOF" Check out the "P51D Test Plane" to see how this works. http://www.fightersquadron.com/ubb/Forum7/HTML/001292.html I also used this to create a red flare that can be fired from the plane and I tried the fire suppression on a four engine bomber. I can send it to you if you want to have a look. IP: Logged |
jedi Pilot
|
posted 12-23- 02:44 PM
OK, got it working using the bomb-airfoil-activation routine. The only drawback to that is that you can only activate the airfoil from a parent object, i.e. wing damage can't activate an airfoil on the fuselage, so you need a lot of airfoils  I'll try the Raider preset DOF method next--that seems to be a little more "elegant." I just put "cmdRunDOF" in as a straight property of the main aircraft object, right? And then use "cmdRunDOF" and "cmdRunReverse" on the actual breaking airfoil, right?
------------------ --jedi-- IP: Logged |
wakeup tailgunner Pilot
|
posted 12-23- 04:44 PM
If you get the B17 into a spin, triggering the fire extinguishers is the least of your problems! I have tested a few things on the B17 now, and have not had any surprise extinguishing! Think problems are more likely on faster planes capable of sudden manouvering. IP: Logged |
Raider Pilot
|
posted 12-23- 11:53 PM
jedi, that is right, one trick that bjorn used for the canopy is that he made a translate dof that would extend away from the plane creating more leverage on the breaking dof. This works too, but you do get some accidental breaks. (as you pointed out this is an advantage in many cases)Using the oscEndDisabled I have not had any accidental breaks, and the trigger speed is between 16 and 30 mph depending on where you locate the dof. IP: Logged | |