Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
26
pub struct Player {
27
pub x: f64,
28
pub y: f64,
29
pub view_angle: f64,
30
pub move_angle: f64,
31
}
32
33
impl Player {
34
/// Moves player across the map and prevents stepping into walls.
Callers
1
actor_at
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected