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

Method SetMotion

server/entity/entity.go:132–136  ·  view source on GitHub ↗
(x, y, z float64)

Source from the content-addressed store, hash-verified

130}
131
132func (p *Entity) SetMotion(x, y, z float64) {
133 p.vx.Store(math.Float64bits(x))
134 p.vy.Store(math.Float64bits(y))
135 p.vz.Store(math.Float64bits(z))
136}
137
138func (p *Entity) SetPosition(x, y, z float64) {
139 p.x.Store(math.Float64bits(x))

Callers 1

NewMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected