Skip to content

Commit

Permalink
Add set_component challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikNoren committed Sep 22, 2023
1 parent b8eb7f2 commit 3423868
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/src/tutorials/game/3_scene.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ for _ in 0..30 {
}
```

> A `cube_collider` is one of the basic physics primitives. [Read more about physics here](../../reference/physics.md),
> In depth: A `cube_collider` is one of the basic physics primitives. [Read more about physics here](../../reference/physics.md),
> or try the [physics example](https://github.com/AmbientRun/Ambient/tree/main/guest/rust/examples/basics/physics).
> Challenge: `Entity::spawn` will return an `EntityId`. Try using [`set_component`](https://docs.rs/ambient_api/0.2.1/ambient_api/entity/fn.set_component.html) to set the `rotation` of the cubes.
It should look something like this:

![Scene](scene.png)
Expand Down

0 comments on commit 3423868

Please sign in to comment.