Add/Remove Child vs. Switch

New Message Reply Date view Thread view Subject view Author view

Cho Tae Hee (chaos++at++chagal.hana.nm.kr)
Fri, 14 Jul 1995 09:15:41 +1000 (KST)


Hi everyone,

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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:41 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.