physics objects (ActorWithBody) will now sleep if ||v|| < 0.5, faction ID is now positive integer (64-bit) only

Former-commit-id: 437cff82cf5748c36c5ad72bc43b4fc172b168c8
Former-commit-id: 3ab0500f83da229ec77b85c09ec42fd332ef62ce
This commit is contained in:
Song Minjae
2016-04-26 14:36:21 +09:00
parent 6ae31f1858
commit 7d804f24e7
8 changed files with 104 additions and 49 deletions

View File

@@ -7,9 +7,9 @@ import net.torvald.point.Point2f
*/
class Hitbox(x1: Float, y1: Float, width: Float, height: Float) {
var hitboxStart: Point2f
@Volatile var hitboxStart: Point2f
private set
var hitboxEnd: Point2f
@Volatile var hitboxEnd: Point2f
private set
var width: Float = 0.toFloat()
private set