SgDecalProjector.attachToObject ?
by Caylo Gypsyblood · in Torque Game Engine · 09/07/2006 (11:26 am) · 2 replies
Is anyway to make sgDecalProjector attach to a moving object?
#2
09/07/2006 (9:58 pm)
Ah yes, i am seeing how the code works, but it seems beyond my skills to create a projector in the player class. I will put this on my list of things to do later....
Torque Owner John Kabus (BobTheCBuilder)
You might want to try creating a custom projection in the player code, which does the position calculation and decal creation on the client. You can take a look at the projector code to see how the decal projection works; sgDecalProjector::sgResetProjection finds the object intersection and generates the necessary point/vector info, and sgDecalProjector::sgProject performs the decal creation/deletion.
Let me know if that helps.