question about target
#1
Question 
Generate 100 missiles with tyflow

When 100 missiles arrive at their targets, the missiles and targets must be removed.

Missiles are easy to remove because they know the target.
However, the target doesn't know what missiles are flying to attack it, so it doesn't know when it should be removed.

How do you get information about other particles targeting me?
  Reply
#2
The Delete operator has a delete target option. So call that first (when the missile is in range, for example), then delete the particle itself.

If multiple missiles are headed for the same target, you can use a Property Test to test for target deleted ("has valid target"), so that you can retarget them if their current target is gone.
  Reply


Forum Jump: