Component for any Entity moving around in 2D space with velocity limited to a maximum value
It can be accelerated (or decelerated, which is the same) by a vector, by magnitude and direction,
or by a scalar factor
View code on GitHub
Inheritance Hierarchy
SideScroller Velocity2D
Namespace: SideScroller
Assembly: SideScroller (in SideScroller.exe) Version: 1.1.1.0 (1.1.1)
Syntax
The Velocity2D type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | Velocity2D | Initializes a new instance of the Velocity2D class |
Methods
Name | Description | |
---|---|---|
![]() | Accelerate |
Fields
Name | Description | |
---|---|---|
![]() | maximumSpeed | |
![]() | velocity |
Properties
Name | Description | |
---|---|---|
![]() | Velocity |
See Also