Public Member Functions | Static Public Member Functions | Properties

CC3NodeUpdatingVisitor Class Reference

CC3NodeUpdatingVisitor is a CC3NodeVisitor that is passed to a node when it is visited during updating operations. More...

#import <CC3NodeVisitor.h>

Inheritance diagram for CC3NodeUpdatingVisitor:
CC3NodeVisitor

List of all members.

Public Member Functions

(id) - initWithWorld:andDeltaTime:

Static Public Member Functions

(id) + visitorWithWorld:andDeltaTime:

Properties

ccTime deltaTime
CC3Worldworld

Detailed Description

CC3NodeUpdatingVisitor is a CC3NodeVisitor that is passed to a node when it is visited during updating operations.

This visitor encapsulates the time since the previous update, and the CC3World, so that nodes have access to other nodes within their world.


Member Function Documentation

- (id) initWithWorld: (CC3World *)  theWorld
andDeltaTime: (ccTime)  dt 

Initializes this instance with the specified world and delta time.

+ (id) visitorWithWorld: (CC3World *)  theWorld
andDeltaTime: (ccTime)  dt 

Allocates and initializes an autoreleased instance with the specified world and delta time.


Property Documentation

- (ccTime) deltaTime [read, write, assign]

This property gives the interval, in seconds, since the previous update.

This value can be used to create realistic real-time motion that is independent of specific frame or update rates. Depending on the setting of the maxUpdateInterval property of the CC3World instance, the value of this property may be clamped to an upper limit. See the description of the CC3World maxUpdateInterval property for more information about clamping the update interval.

- (CC3World *) world [read, write, retain]

The CC3World that the node is part of.

Each node can interact with other nodes in the 3D world, through this property.


The documentation for this class was generated from the following file: