aboutsummaryrefslogtreecommitdiff
path: root/examples2d
diff options
context:
space:
mode:
authorThierry Berger <contact@thierryberger.com>2024-08-02 11:49:45 +0200
committerGitHub <noreply@github.com>2024-08-02 11:49:45 +0200
commit364b5b7c37c30af745ad77555d56b6c47ce7de8e (patch)
tree90e871ba08f6912f219f3a55fc89c438eab895fd /examples2d
parent595b952c52fd953709b0a7131f7b8ba113a050a7 (diff)
downloadrapier-364b5b7c37c30af745ad77555d56b6c47ce7de8e.tar.gz
rapier-364b5b7c37c30af745ad77555d56b6c47ce7de8e.tar.bz2
rapier-364b5b7c37c30af745ad77555d56b6c47ce7de8e.zip
Color visualization for grounded character controller (#705)
Diffstat (limited to 'examples2d')
-rw-r--r--examples2d/character_controller2.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples2d/character_controller2.rs b/examples2d/character_controller2.rs
index 2325101..2acf50f 100644
--- a/examples2d/character_controller2.rs
+++ b/examples2d/character_controller2.rs
@@ -29,6 +29,7 @@ pub fn init_world(testbed: &mut Testbed) {
let character_handle = bodies.insert(rigid_body);
let collider = ColliderBuilder::capsule_y(0.3, 0.15);
colliders.insert_with_parent(collider, character_handle, &mut bodies);
+ testbed.set_initial_body_color(character_handle, [0.8, 0.1, 0.1]);
/*
* Create the cubes