Make comments to be doc-comments

This commit is contained in:
juliancoffee 2022-08-20 19:23:05 +03:00
parent 6319dcfc22
commit 69cea513ee

View File

@ -567,7 +567,7 @@ impl Body {
} }
} }
// Body collider /// Body collider
pub fn collider(&self) -> Collider { pub fn collider(&self) -> Collider {
if let Body::Ship(ship) = self { if let Body::Ship(ship) = self {
ship.make_collider() ship.make_collider()
@ -584,10 +584,10 @@ impl Body {
} }
} }
// How far away other entities should try to be. Will be added upon the other /// How far away other entities should try to be. Will be added upon the
// entity's spacing_radius. So an entity with 2.0 and an entity with 3.0 will /// other entity's spacing_radius. So an entity with 2.0 and an entity
// lead to that both entities will try to keep 5.0 units away from each /// with 3.0 will lead to that both entities will try to keep 5.0 units
// other. /// away from each other.
pub fn spacing_radius(&self) -> f32 { pub fn spacing_radius(&self) -> f32 {
self.max_radius() self.max_radius()
+ match self { + match self {