Fixes soap and banana peels going through walls when thrown.

This commit is contained in:
Vera Aguilera Puerto
2021-03-15 21:29:03 +01:00
parent e7052566a4
commit 0531dcb197
5 changed files with 23 additions and 12 deletions

View File

@@ -183,9 +183,14 @@
- type: Slippery
intersectPercentage: 0.2
- type: Physics
bodyType: KinematicController
mass: 5
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.2,-0.2,0.2,0.2"
layer:
- MobImpassable
- shape:
!type:PhysShapeAabb
bounds: "-0.3,-0.4,0.3,0.4"
layer:
- SmallImpassable
mask:
- Impassable
- MobImpassable

View File

@@ -104,10 +104,11 @@
- type: Item
sprite: Objects/Specific/Janitorial/soap.rsi
- type: Slippery
paralyzeTime: 2.5
paralyzeTime: 2
intersectPercentage: 0.2
- type: Physics
bodyType: Dynamic
mass: 5
bodyType: KinematicController
mass: 2.5
fixtures:
- shape:
!type:PhysShapeAabb
@@ -115,9 +116,8 @@
layer:
- SmallImpassable
mask:
- SmallImpassable
- Impassable
- MobImpassable
hard: false
- type: entity
name: soap