C# Class geek.GameEngine.Behaviours.GravityBehaviour

The gravity behaviour: applies a directional force to the object.
Inheritance: IBehaviour
Mostra file Open project: impworks/xna.geek.engine

Public Properties

Property Type Description
SpeedLimit float

Public Methods

Method Description
GravityBehaviour ( float coefficient, GravityDirection direction, float limit = DefaultSpeedLimit ) : System
GravityBehaviour ( float coefficient, float limit = DefaultSpeedLimit ) : System
UpdateObjectState ( DynamicObject obj ) : void

Method Details

GravityBehaviour() public method

public GravityBehaviour ( float coefficient, GravityDirection direction, float limit = DefaultSpeedLimit ) : System
coefficient float
direction GravityDirection
limit float
return System

GravityBehaviour() public method

public GravityBehaviour ( float coefficient, float limit = DefaultSpeedLimit ) : System
coefficient float
limit float
return System

UpdateObjectState() public method

public UpdateObjectState ( DynamicObject obj ) : void
obj geek.GameEngine.Visuals.DynamicObject
return void

Property Details

SpeedLimit public_oe property

The maximum speed the object can achieve using gravity behaviour.
public float SpeedLimit
return float