Documentation
¶
Index ¶
- Constants
- func CollisionMesh(mesh vertex.Mesh) vertex.Mesh
- func GoDrawLineCallback(handle C.goDynamicsWorldHandle, ...)
- type Box
- type Capsule
- type Character
- type Collider
- type Compound
- type Mask
- type Mesh
- type Object
- type RaycastHit
- type RigidBody
- type Shape
- type ShapeType
- type Sphere
- type Vertex
- type World
- func (w *World) AddCharacter(character *Character)
- func (w *World) Debug(enabled bool)
- func (w *World) DebugDraw()
- func (w *World) OnEnable()
- func (w *World) Raycast(from, to vec3.T, mask Mask) (hit RaycastHit, exists bool)
- func (w *World) RemoveCharacter(character *Character)
- func (w *World) SetGravity(gravity vec3.T)
- func (w *World) Update(scene object.Component, dt float32)
Constants ¶
View Source
const ( BoxShape = ShapeType(1) SphereShape = ShapeType(2) CylinderShape = ShapeType(3) CapsuleShape = ShapeType(4) MeshShape = ShapeType(5) CompoundShape = ShapeType(6) )
View Source
const All = Mask(0xFFFFFFFF)
View Source
const None = Mask(0)
Variables ¶
This section is empty.
Functions ¶
func GoDrawLineCallback ¶
func GoDrawLineCallback(handle C.goDynamicsWorldHandle, start_x, start_y, start_z, end_x, end_y, end_z, color_r, color_g, color_b C.float)
Types ¶
type Box ¶
type Capsule ¶
type Character ¶
func NewCharacter ¶
func (*Character) Jump ¶
func (c *Character) Jump()
Jump applies a jumping force to the character todo: configurable?
type Compound ¶
type Compound struct { *Collider // contains filtered or unexported fields }
func NewCompound ¶
type Mesh ¶
type RigidBody ¶
type Shape ¶
type Sphere ¶
type World ¶
func (*World) AddCharacter ¶
func (*World) RemoveCharacter ¶
func (*World) SetGravity ¶
Click to show internal directories.
Click to hide internal directories.