Inherits from CC3MeshNode : CC3LocalContentNode : CC3Node : CC3Identifiable : NSObject
Declared in Models.h

Overview

A specialized mesh node that tracks its instantaneous global velocity, even when controlled by a CCAction, and even when moved as part of another larger node.

After each update, this node compares its previous global location to the current global location, and calculates an instantaneous velocity.

Tasks

Properties

previousGlobalLocation

The global location of this node on the previous update.

@property (nonatomic, readonly) CC3Vector previousGlobalLocation

Declared In

Models.h

velocity

The current velocity, as calculated during the previous update.

@property (nonatomic, readonly) CC3Vector velocity

Declared In

Models.h