Game Development Community

Cloaked Vehicles

by Brian -Cybore- Smith · in Torque Game Engine · 05/07/2005 (11:56 am) · 2 replies

I was wondering if anyone has ever dabbled with the concept of cloaking vehicles? I'm sure I'm not the first with the idea, and before I attempt it myself, I was wondering if it had already been done. I've looked all over the forums for such, and unless I overlooked something, I couldn't find anything.

Any replies are greatly appreciated. Thanks!

#1
05/07/2005 (1:08 pm)
%vehicle.setCloaked(true);

Cloaking is a property of ShapeBase. Vehicles are derived from ShapeBase, so they should already be able to cloak. Unfortunately, the wheels on WheeledVehicles don't cloak. I've never looked into fixing that, so I couldn't tell you how much work it would involve. Wheel-less vehicles should cloak fine though.

Also, you can assign a cloak texture in their datablock with the "cloakTexture" parameter.
#2
05/07/2005 (1:23 pm)
Thanks Scott! Help like yours is the reason I love this community so much.