C# Class geek.GameEngine.Behaviours.FrictionBehaviour

The behaviour that deceleates object's momentum over time.
Inheritance: IBehaviour
Afficher le fichier Open project: impworks/xna.geek.engine

Méthodes publiques

Méthode Description
FrictionBehaviour ( float coeff, FrictionDirection direction = FrictionDirection.Both ) : System

Create a new friction behaviour instance.

UpdateObjectState ( DynamicObject obj ) : void

Method Details

FrictionBehaviour() public méthode

Create a new friction behaviour instance.
public FrictionBehaviour ( float coeff, FrictionDirection direction = FrictionDirection.Both ) : System
coeff float /// Friction coefficient. /// 0 = no friction. /// 1 = stop within 1 second. /// >60 = stop immediately. ///
direction FrictionDirection Friction direction.
Résultat System

UpdateObjectState() public méthode

public UpdateObjectState ( DynamicObject obj ) : void
obj geek.GameEngine.Visuals.DynamicObject
Résultat void