C# Класс Vtj.Contest.Shooter.SeekMotion

Наследование: IMotion
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Angle double
Target Vtj.Gaming.GameObject

Открытые методы

Метод Описание
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

Описание методов

SeekMotion() публичный Метод

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.
Результат System

Update() публичный Метод

public Update ( GameObject gameObject, float deltaTime ) : void
gameObject Vtj.Gaming.GameObject
deltaTime float
Результат void

Описание свойств

Angle публичное свойство

public double Angle
Результат double

Target публичное свойство

public GameObject,Vtj.Gaming Target
Результат Vtj.Gaming.GameObject