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
ce7ed5f679
commit
81a9174d58
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,
|
friction: 6,
|
||||||
restitution: 0.3
|
restitution: 0.3
|
||||||
},
|
},
|
||||||
|
"friction_bouncy" => {
|
||||||
|
friction: 0.2,
|
||||||
|
restitution: 2.0,
|
||||||
|
force: 15.0
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
static var customMaterialDict:Map<String, {
|
static var customMaterialDict:Map<String, {
|
||||||
|
|
@ -397,6 +402,7 @@ class DifBuilder {
|
||||||
new Vector(0.3, 0.3, 0.35, 1)),
|
new Vector(0.3, 0.3, 0.35, 1)),
|
||||||
'friction_high_shadow' => (onFinish) -> createDefaultMaterial(onFinish, 'data/textures/friction_high_shadow.png',
|
'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)),
|
'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)),
|
'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