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 and transforming operations. More...

#import <CC3NodeVisitor.h>

Inheritance diagram for CC3NodeUpdatingVisitor:
Inheritance graph
[legend]
Collaboration diagram for CC3NodeUpdatingVisitor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithWorld:andDeltaTime:

Static Public Member Functions

(id) + visitorWithWorld:andDeltaTime:

Properties

ccTime deltaTime

Detailed Description

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

This visitor encapsulates the time since the previous update.


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.


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