C# Class Vtj.Contest.Shooter.SeekMotion

Inheritance: IMotion
Mostrar archivo Open project: Ventajou/Space-Dinosaurs Class Usage Examples

Public Properties

Property Type Description
Angle double
Target Vtj.Gaming.GameObject

Public Methods

Method Description
SeekMotion ( GameObject target, float speed, Vtj.Gaming.Vector2D defaultVector, float rotationSpeed ) : System

Initializes a new instance of the SeekMotion class.

Update ( GameObject gameObject, float deltaTime ) : void

Method Details

SeekMotion() public method

Initializes a new instance of the SeekMotion class.
public SeekMotion ( GameObject target, float speed, Vtj.Gaming.Vector2D defaultVector, float rotationSpeed ) : System
target Vtj.Gaming.GameObject The target object.
speed float The speed (under 0.1f is better).
defaultVector Vtj.Gaming.Vector2D The default vector used when no target is set yet.
rotationSpeed float The rotation speed.
return System

Update() public method

public Update ( GameObject gameObject, float deltaTime ) : void
gameObject Vtj.Gaming.GameObject
deltaTime float
return void

Property Details

Angle public_oe property

public double Angle
return double

Target public_oe property

public GameObject,Vtj.Gaming Target
return Vtj.Gaming.GameObject