Game Development Community

Mount fxLight on a node of player object

by Kevin · in Technical Issues · 07/16/2004 (6:49 pm) · 4 replies

Hi, I am trying to mount fxLight on a player object and I'm having a problem.

I have the fxLightDB class embedded in the player class and update the transform of the light according to a node.

what happens is that the tranform/position of the fxLight gets updated but the engine doesn't render the light in the new position.

Is there a function I call use to redraw the fxLight in the new Position? or is there something else I could do? Please help.

thank,

Kevin

#1
07/17/2004 (10:58 am)
I am wondering. You trying to just use an omni type light, or trying to use a spotlight for a substitute as a flashlight here?
#2
07/17/2004 (12:41 pm)
It is the fxlight resource by Melv May
#3
07/17/2004 (3:03 pm)
Instead of sub classing the fxLight into the player why dont you just modify the fxLight to accept mountPoints. I've done this but the problem I have is the interpolation of the light to the player | vehicle. If you would like to check it out you can grab it here
#4
07/17/2004 (4:43 pm)
Thanks alot Sam.

but I already find something for fxLightDB from
http://www.garagegames.com/mg/forums/result.thread.php?qt=10494
and it worked great.

thanks again.

Kevin