Documentation
¶
Index ¶
Constants ¶
View Source
const SectorSize = 512
Variables ¶
This section is empty.
Functions ¶
func ApplyInput ¶
func ApplyInput(e *Entity, input InputPacket, deltaTime float32)
Types ¶
type Entity ¶
type Entity struct { ID uint32 PosX, PosY float32 VelX, VelY float32 Rotation float32 AngularVel float32 }
func QueryInterest ¶
func QueryInterest(centerX, centerY float32, world map[SectorCoord][]Entity) []Entity
type InputPacket ¶
type SectorCoord ¶
type SectorCoord struct {
X, Y int
}
func GetSector ¶
func GetSector(x, y float32) SectorCoord
Source Files
¶
- entity.go
- input.go
- interest.go
- snapshot.go
Click to show internal directories.
Click to hide internal directories.