WaterBlock ConsoleMethod not working - toggleWireFrame
by D. Robert Duke · in Torque Game Engine · 04/11/2007 (12:28 am) · 1 replies
WaterBlock.toggleWireFrame() - Does this work for anyone? Find a WaterBlock and run .toggleWireFrame() on it in the console. The console prints the 'ENABLED' message, but wireframe mode isn't enabled on the water. The toggleWireFrame ConsoleMethod code IS getting executed, but whatever mFluid.m_ShowWire it updates is some kind of bizarro-world object - m_ShowWire is still false when TGE goes to render the water. None of the missions I tried this on had more than one waterblock. I can put a breakpoint in WaterBlock.mFluid's render code and manually update m_ShowWire to TRUE, and a wireframe will display on the water that way.
I started writing this because I was having problems with my own ConsoleMethod for updating a WaterBlock property. I tried every workaround I could think of with the same results. I finally got something to work but it's real ugly. Now I just want to know if this is really an engine bug or if there's some crazy thing I'm missing. I'm on TGE 1.5.
I started writing this because I was having problems with my own ConsoleMethod for updating a WaterBlock property. I tried every workaround I could think of with the same results. I finally got something to work but it's real ugly. Now I just want to know if this is really an engine bug or if there's some crazy thing I'm missing. I'm on TGE 1.5.
About the author
Torque Owner D. Robert Duke
Is this fixed in 1.5.1, or should I post it to the bug report forum?