Skip to content

package collision_system

import "kaiju/engine/collision_system"

Constants

ShapeAABB

Shape(iota)

ShapeOOBB

Types

CollisionShape

struct

type CollisionShape struct {
    Transform *matrix.Transform
    ShapeData any
    Shape     Shape

    // Has unexported fields.
}

RegisterCollisionShape

func RegisterCollisionShape(man *Manager, transform *matrix.Transform, shape Shape, shapeData any) *CollisionShape

Manager

struct

type Manager struct {
    // Has unexported fields.
}

Manager.Remove

func (m *Manager) Remove(shape *CollisionShape)

Manager.Update

func (m *Manager) Update(deltaTime float64)

Shape

int

type Shape = int