Documentation ¶
Index ¶
- type GameObject
- type GameObjectType
- type Planet
- type Player
- func (player *Player) Destroy()
- func (player *Player) ID() int64
- func (player *Player) Radius() float64
- func (player *Player) RigidBody() *physics.RigidBody
- func (player *Player) Type() GameObjectType
- func (player *Player) Update(delta float64)
- func (player *Player) UpdateMovement(move *mathf.Vec3, rotation *mathf.Vec3)
- type Sun
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameObject ¶
type GameObject interface { ID() int64 Type() GameObjectType RigidBody() *physics.RigidBody Update(delta float64) Destroy() }
type GameObjectType ¶
type GameObjectType string
var GameObjectPlanet GameObjectType = "planet"
var GameObjectPlayer GameObjectType = "planet"
var GameObjectSun GameObjectType = "sun"
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func (*Player) Type ¶
func (player *Player) Type() GameObjectType
Click to show internal directories.
Click to hide internal directories.