We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bab0907 commit dd0967eCopy full SHA for dd0967e
net-pong/rust/src/paddle.rs
@@ -28,6 +28,10 @@ impl IArea2D for Paddle {
28
.connect_self(|this: &mut Self, mut area: Gd<Area2D>| {
29
if this.base().is_multiplayer_authority() {
30
// Set a random direction for the ball to go in
31
+ // Note: all RPCs consume their arguments as Variant
32
+ // this is a limitation of godot-rust
33
+ // we currently don't have a way to statically type RPCs the way we do for signals
34
+ // so we have to use Variant and convert manually
35
let args = vslice![this.left, randf()];
36
area.rpc("bounce", args);
37
}
0 commit comments