-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0b7bc2
commit 2c6dfd9
Showing
8 changed files
with
66 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# CHANGELOG | ||
|
||
## 0.1.0 | ||
|
||
First version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
/// Component preventing application of [`VerletPoint`][VerletPoint] physics. | ||
/// | ||
/// [VerletPoint]: struct.VerletPoint.html | ||
#[derive(Debug, Copy, Clone)] | ||
pub struct VerletLocked {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
use bevy::prelude::Entity; | ||
|
||
/// Constraint component between two [`VerletPoint`][VerletPoint]. | ||
/// | ||
/// [VerletPoint]: struct.VerletPoint.html | ||
#[derive(Debug, Clone)] | ||
pub struct VerletStick { | ||
/// Start `VerletPoint` entity | ||
pub point_a_entity: Entity, | ||
/// End `VerletPoint` entity | ||
pub point_b_entity: Entity, | ||
/// Target stick length | ||
pub length: f32, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
/// Component adding a maximum tension to a [`VerletStick`][VerletStick] | ||
/// | ||
/// The stick will break when its size becomes bigger than its `length` multiplied by this factor | ||
/// | ||
/// If you set it to `1.0` the stick will break almost instantly | ||
/// If you set it to `2.0` the stick will break when stretched to twice its `length` | ||
/// | ||
/// [VerletStick]: struct.VerletStick.html | ||
#[derive(Debug, Clone)] | ||
pub struct VerletStickMaxTension(pub f32); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters