Skip to content

Commit

Permalink
Make projectiles sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Jul 29, 2024
1 parent bce6386 commit 51f4d09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/game/combat/projectile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ pub fn projectile(
RigidBody::Kinematic,
Collider::circle(projectile.radius),
CollisionLayers::new(GameLayer::Projectile, target_layers),
Sensor,
LockedAxes::ROTATION_LOCKED,
LinearVelocity(projectile.speed * force),
),
Expand Down

0 comments on commit 51f4d09

Please sign in to comment.