-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
materials, auto mass calcs, improved mass integs
- Loading branch information
1 parent
178a60a
commit c874466
Showing
24 changed files
with
245 additions
and
99 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
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
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,27 @@ | ||
package echo; | ||
|
||
import echo.math.Vector2; | ||
import echo.util.BitMask; | ||
/** | ||
* A Structure that describes the physical properties of a `Body`. | ||
*/ | ||
@:structInit | ||
class Material { | ||
public static var global:Material = {}; | ||
/** | ||
* Value to determine how much of a Body's `velocity` should be retained during collisions (or how much should the `Body` "bounce" in other words). | ||
*/ | ||
public var elasticity:Float = 0; | ||
|
||
public var density:Float = 1; | ||
|
||
// TODO | ||
public var friction:Float = 0; | ||
|
||
// TODO | ||
public var static_friction:Float = 0; | ||
/** | ||
* Percentage value that represents how much a World's gravity affects the Body. | ||
*/ | ||
public var gravity_scale:Float = 1; | ||
} |
Oops, something went wrong.