Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: alien/alien.cpp
- Revision:
- 15:ebbd903455f0
- Parent:
- 14:6c4bce33c1a1
- Child:
- 16:cba54d0696dc
--- a/alien/alien.cpp Fri Apr 19 17:41:34 2019 +0000
+++ b/alien/alien.cpp Fri Apr 19 17:45:55 2019 +0000
@@ -49,4 +49,10 @@
{
_x += _velocity.x;
_y += _velocity.y;
+
+ void alien::set_velocity(Vector2D v)
+{
+ _velocity.x = v.x;
+ _velocity.y = v.y;
}
+}