Fixes all the rotation bugs. (#3365)
This commit is contained in:
committed by
GitHub
parent
6d48154617
commit
63947a6d35
@@ -20,7 +20,7 @@
|
||||
- type: PointLight
|
||||
radius: 8
|
||||
energy: 1.2
|
||||
offset: "0.5, 0"
|
||||
offset: "0, -0.5"
|
||||
color: "#DCDCC6"
|
||||
- type: SignalReceiver
|
||||
- type: Damageable
|
||||
@@ -81,7 +81,7 @@
|
||||
- type: PointLight
|
||||
energy: 1.0
|
||||
enabled: true
|
||||
offset: "0.5, 0"
|
||||
offset: "0, -0.5"
|
||||
- type: Damageable
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
@@ -113,7 +113,7 @@
|
||||
- type: PointLight
|
||||
energy: 1.0
|
||||
enabled: false
|
||||
offset: "0.5, 0"
|
||||
offset: "0, -0.5"
|
||||
- type: Physics
|
||||
shapes:
|
||||
- !type:PhysShapeAabb
|
||||
|
||||
@@ -6,6 +6,6 @@
|
||||
- type: Sprite
|
||||
sprite: Effects/arcs.rsi
|
||||
directional: false
|
||||
offset: 0.85, 0
|
||||
offset: 0, -0.85
|
||||
drawdepth: Overlays
|
||||
- type: MeleeWeaponArcAnimation
|
||||
- type: MeleeWeaponArcAnimation
|
||||
|
||||
82
Resources/Prototypes/Entities/clicktest.yml
Normal file
82
Resources/Prototypes/Entities/clicktest.yml
Normal file
@@ -0,0 +1,82 @@
|
||||
# Entities specifically for testing click detection with ClickableComponent.
|
||||
#
|
||||
# Each entity has a bounding box AND texture equivalent.
|
||||
# Note that bounding box versions still have dots on the outside or center to make it possible to... see them.
|
||||
# These dots' texture detection should not interfere with the actual bounding box being tested.
|
||||
|
||||
- type: entity
|
||||
abstract: true
|
||||
id: ClickTestBase
|
||||
components:
|
||||
- type: Clickable
|
||||
- type: InteractionOutline
|
||||
- type: Sprite
|
||||
sprite: Effects/clicktest.rsi
|
||||
|
||||
|
||||
- type: entity
|
||||
id: ClickTestRotatingCornerVisible
|
||||
name: ClickTestRotatingCornerVisible
|
||||
parent: ClickTestBase
|
||||
components:
|
||||
- type: Clickable
|
||||
- type: InteractionOutline
|
||||
- type: Sprite
|
||||
state: rotating_corner
|
||||
|
||||
- type: entity
|
||||
id: ClickTestRotatingCornerVisibleNoRot
|
||||
name: ClickTestRotatingCornerVisibleNoRot
|
||||
parent: ClickTestRotatingCornerVisible
|
||||
components:
|
||||
- type: Sprite
|
||||
noRot: true
|
||||
|
||||
- type: entity
|
||||
id: ClickTestRotatingCornerInvisible
|
||||
name: ClickTestRotatingCornerInvisible
|
||||
parent: ClickTestBase
|
||||
components:
|
||||
- type: Clickable
|
||||
bounds:
|
||||
south: "0.125,0.125,0.375,0.375"
|
||||
north: "-0.375,-0.375,-0.125,-0.125"
|
||||
east: "0.125,-0.375,0.375,-0.125"
|
||||
west: "-0.375,0.125,-0.125,0.375"
|
||||
|
||||
- type: InteractionOutline
|
||||
- type: Sprite
|
||||
state: invis_base
|
||||
|
||||
- type: entity
|
||||
id: ClickTestRotatingCornerInvisibleNoRot
|
||||
name: ClickTestRotatingCornerInvisibleNoRot
|
||||
parent: ClickTestRotatingCornerInvisible
|
||||
components:
|
||||
- type: Sprite
|
||||
noRot: true
|
||||
|
||||
|
||||
- type: entity
|
||||
id: ClickTestFixedCornerVisible
|
||||
name: ClickTestFixedCornerVisible
|
||||
parent: ClickTestBase
|
||||
components:
|
||||
- type: Clickable
|
||||
- type: InteractionOutline
|
||||
- type: Sprite
|
||||
state: fixed_corner
|
||||
|
||||
- type: entity
|
||||
id: ClickTestFixedCornerInvisible
|
||||
name: ClickTestFixedCornerInvisible
|
||||
parent: ClickTestBase
|
||||
components:
|
||||
- type: Clickable
|
||||
bounds:
|
||||
all: "0.125,0.125,0.375,0.375"
|
||||
|
||||
- type: InteractionOutline
|
||||
- type: Sprite
|
||||
state: invis_base
|
||||
|
||||
Reference in New Issue
Block a user