OGWWorldGravityAspect Class Reference
Inherits from | OGWAspect : NSObject |
Declared in | OGWWorldGravityAspect.h |
Overview
World gravity defines the gravity of all entities in the world. OGWKinematicsAspect considers the world gravity. Other aspects may use it as they see fit.
Delegate should register themselves via the notifier object (class: OGWNotifier).
Properties
gravity
Gravity, a negative Y value means downward oriented gravity. Setting gravity will inform all OGWWorldGravityDelegate objects registered on the notifier about the change.
@property GWVector gravity
Return Value
The current gravity vector, in units per step. Defaults to 0,0.
Declared In
OGWWorldGravityAspect.h