MCPcopy Create free account
hub / github.com/AdRoll/rustenstein / Player

Class Player

src/player.rs:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26pub struct Player {
27 pub x: f64,
28 pub y: f64,
29 pub view_angle: f64,
30 pub move_angle: f64,
31}
32
33impl Player {
34 /// Moves player across the map and prevents stepping into walls.

Callers 1

actor_atMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected