Midnight Blue Game and Engine
Public Member Functions | Properties | List of all members
MB2D.EntityComponent.Movement Class Reference

Defines position, rotation and speed related data for moving an entity. More...

Inheritance diagram for MB2D.EntityComponent.Movement:
Inheritance graph
Collaboration diagram for MB2D.EntityComponent.Movement:
Collaboration graph

Public Member Functions

 Movement (float speed=0.0f, float rotationSpeed=0.0f)
 Initializes a new instance of the T:MB2D.EntityComponent.Movement class. More...
 

Properties

Vector2 Position [get, set]
 Gets or sets the world position. More...
 
float RotationSpeed [get, set]
 Gets or sets the rotation speed. More...
 
float Speed [get, set]
 Gets or sets the movement speed. More...
 
Vector2 Heading [get, set]
 Gets or sets the current heading. More...
 
float Angle [get, set]
 Gets or sets the angle. More...
 
Vector2 LastPosition [get, set]
 Gets or sets the last known position. More...
 

Detailed Description

Defines position, rotation and speed related data for moving an entity.

Constructor & Destructor Documentation

§ Movement()

MB2D.EntityComponent.Movement.Movement ( float  speed = 0.0f,
float  rotationSpeed = 0.0f 
)
inline

Initializes a new instance of the T:MB2D.EntityComponent.Movement class.

Parameters
speedInitial speed value.
rotationSpeedInitial rotation speed value.

Property Documentation

§ Angle

float MB2D.EntityComponent.Movement.Angle
getset

Gets or sets the angle.

The angle in radians.

§ Heading

Vector2 MB2D.EntityComponent.Movement.Heading
getset

Gets or sets the current heading.

The heading.

§ LastPosition

Vector2 MB2D.EntityComponent.Movement.LastPosition
getset

Gets or sets the last known position.

The last position.

§ Position

Vector2 MB2D.EntityComponent.Movement.Position
getset

Gets or sets the world position.

The position.

§ RotationSpeed

float MB2D.EntityComponent.Movement.RotationSpeed
getset

Gets or sets the rotation speed.

The rotation speed.

§ Speed

float MB2D.EntityComponent.Movement.Speed
getset

Gets or sets the movement speed.

The speed.


The documentation for this class was generated from the following file: