mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
bouncy friction support
This commit is contained in:
parent
5fea86f0f2
commit
36b8f45f47
2 changed files with 6 additions and 0 deletions
BIN
data/textures/friction_bouncy.png
Normal file
BIN
data/textures/friction_bouncy.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1 MiB |
|
|
@ -214,6 +214,11 @@ class DifBuilder {
|
|||
friction: 6,
|
||||
restitution: 0.3
|
||||
},
|
||||
"friction_bouncy" => {
|
||||
friction: 0.2,
|
||||
restitution: 2.0,
|
||||
force: 15.0
|
||||
}
|
||||
];
|
||||
|
||||
static var customMaterialDict:Map<String, {
|
||||
|
|
@ -397,6 +402,7 @@ class DifBuilder {
|
|||
new Vector(0.3, 0.3, 0.35, 1)),
|
||||
'friction_high_shadow' => (onFinish) -> createDefaultMaterial(onFinish, 'data/textures/friction_high_shadow.png',
|
||||
'data/textures/friction_high.normal.png', 10, new Vector(0.15, 0.15, 0.16, 1.0)),
|
||||
'friction_bouncy' => (onFinish) -> createDefaultNormalMaterial(onFinish, 'data/textures/friction_bouncy.png', 12, new Vector(0.8, 0.8, 0.6, 1)),
|
||||
'stripe_caution' => (onFinish) -> createDefaultNormalMaterial(onFinish, 'data/textures/stripe_caution.png', 12, new Vector(0.8, 0.8, 0.6, 1)),
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue