Cho Tae Hee (chaos++at++chagal.hana.nm.kr)
Fri, 14 Jul 1995 09:15:41 +1000 (KST)
I made a simple program firing laser beam to enemy vehicle.
Laser beam is implemented using pfDCS -> pfClone -> pfAddChild.
When a beam hits enemy vehicle, then it is pfRemoveChilded.
It was successful, but when the beam disappears, the scene stopped
for about 0.2~0.3 second.
Now my questions :
1) Is pfRemoveChild so complex job?
2) If it is, is it reasonable to implement the beams using pfDCS ->
pfSwitch -> pfClone and pfAddChild at the beginning of the program,
and only manipulating pfSwitch when a beam fires or hits?
3) 2)'s approach has a problem that we must know the maximum number of
beam to be used. Is there other dynamic allocating and not-so-slow method?
Thanks in advance.
fox++at++venus.sait.samsung.co.kr
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:41 PDT