Defines position, rotation and speed related data for moving an entity.
More...
|
| Movement (float speed=0.0f, float rotationSpeed=0.0f) |
| Initializes a new instance of the T:MB2D.EntityComponent.Movement class. More...
|
|
Defines position, rotation and speed related data for moving an entity.
§ 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
-
speed | Initial speed value. |
rotationSpeed | Initial rotation speed value. |
§ 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:
- MB2D/src/EntityComponent/Components/Movement.cs