Added backend collider initialization codes.

This commit is contained in:
genxium
2022-10-01 15:14:05 +08:00
parent 527cc94242
commit a2a8be9068
5 changed files with 73 additions and 61 deletions

View File

@@ -1,12 +1,5 @@
package models
import (
"github.com/ByteArena/box2d"
)
type Barrier struct {
X float64
Y float64
Boundary *Polygon2D
CollidableBody *box2d.B2Body
}