MCPcopy Create free account
hub / github.com/Vulae/pkmc / coordinate_transform

Method coordinate_transform

examples/server/src/player/command.rs:22–28  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

20
21impl Player {
22 pub fn coordinate_transform(&self) -> CommandCoordinateTransform {
23 CommandCoordinateTransform::new_partial(
24 self.position,
25 self.position + Vec3::new(0.0, 1.5, 0.0),
26 Vec3::get_vector_for_rotation(self.pitch.into(), self.yaw.into()),
27 )
28 }
29
30 pub fn execute_command<C: PlayerExecutableCommand>(
31 &mut self,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected