MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / Motion

Method Motion

server/entity/entity.go:157–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155}
156
157func (p *Entity) Motion() (vx, vy, vz float64) {
158 return math.Float64frombits(p.vx.Load()), math.Float64frombits(p.vy.Load()), math.Float64frombits(p.vz.Load())
159}
160
161func (p *Entity) Rotation() (yaw, pitch float32) {
162 return math.Float32frombits(p.yaw.Load()), math.Float32frombits(p.pitch.Load())

Callers 1

syncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected