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

Method SetRotation

server/entity/entity.go:144–147  ·  view source on GitHub ↗
(yaw, pitch float32)

Source from the content-addressed store, hash-verified

142}
143
144func (p *Entity) SetRotation(yaw, pitch float32) {
145 p.yaw.Store(math.Float32bits(yaw))
146 p.pitch.Store(math.Float32bits(pitch))
147}
148
149func (p *Entity) SetOnGround(v bool) {
150 p.onGround.Store(v)

Callers 2

SynchronizePositionMethod · 0.80
NewMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected