LandingCraft Class Reference
Inherits from | CC3Node : CC3Identifiable : NSObject |
Declared in | Models.h |
Overview
LandingCraft is a specialized node that creates and holds an army of other nodes, based on a template node that is repeatedly copied, and the copies are distributed around the scene.
Instance Methods
evaporate
Removes the invasion army by fading them away and then removing them from the scene.
- (void)evaporate
Declared In
Models.h
populateArmyWith:
Creates many copies of the specified template node, and places them around the scene. Each of the copies is independently animated at different speeds using CCActionIntervals, to demonstrate the individuality of nodes, even though they share the same mesh data.
- (void)populateArmyWith:(CC3Node *)templateNode
Discussion
The landing motion rains the invading nodes down from the sky, again using CCActionIntervals. These actions are also independently timed so that the invading nodes drop randomly like rain.
Declared In
Models.h