Skip to content

package engine_entity_data_physics

import "kaiju/engine_entity_data/engine_entity_data_physics"

Constants

Types

RigidBodyEntityData

struct

type RigidBodyEntityData struct {
    Extent   matrix.Vec3 `default:"1,1,1"`
    Mass     float32     `default:"1"`
    Radius   float32     `default:"1"`
    Height   float32     `default:"1"`
    Shape    Shape
    IsStatic bool
}

RigidBodyEntityData.Init

func (r RigidBodyEntityData) Init(e *engine.Entity, host *engine.Host)

Shape

int

type Shape int

const ( ShapeBox Shape = iota ShapeSphere ShapeCapsule ShapeCylinder ShapeCone )