Skip to content
Snippets Groups Projects

Added jump with gravity component

Merged Ingrid Louise Lagethon Heck requested to merge 8-create-movement into master
3 files
+ 12
4
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -7,7 +7,10 @@ import tdt4240.netrunner.model.util.Vec2f
class GravityComponent(val gravSpeed: Vec2f = Vec2f(0f, GRAVITY)) : Component {
override val componentName: String = this::class.java.name
companion object {
const val GRAVITY = 9.81f
const val GRAVITY = -700.0f
//TODO:
}
}
\ No newline at end of file
Loading