Game Development Community


#1
09/07/2006 (12:14 pm)
Unfortunately the attach code is specific to light objects. Also there is some delay in the time between moving the projector and the decal changing (you can see this by opening up the mission editor and moving or rotating a projector) - this would more or less ruin the effect you are going for.

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.
#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....