MCPcopy Create free account
hub / github.com/Schr3da/gdext-rust-tutorials / init

Method init

getting-started/rust/src/player.rs:12–14  ·  view source on GitHub ↗
(base: Base<Sprite2D>)

Source from the content-addressed store, hash-verified

10#[godot_api]
11impl ISprite2D for Player {
12 fn init(base: Base<Sprite2D>) -> Self {
13 Self { base }
14 }
15
16 fn physics_process(&mut self, delta: f64) {
17 let radians = (3.14 * delta) as f32;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected