@dcl-regenesislabs/protocol 1.0.0-46222317059.commit-f753e5a → 1.0.0-46262405080.commit-bcb80ea

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl-regenesislabs/protocol",
3
- "version": "1.0.0-46222317059.commit-f753e5a",
3
+ "version": "1.0.0-46262405080.commit-bcb80ea",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,7 +33,7 @@
33
33
  "protoc-gen-bitwise/*.js",
34
34
  "protoc-gen-bitwise/runtime"
35
35
  ],
36
- "commit": "f753e5abea00420cb7d319bd01e2648582c3c4aa",
36
+ "commit": "bcb80ea398af11a18c5ed7788b160a3ec43086a6",
37
37
  "scripts": {
38
38
  "build": "./scripts/generate.sh",
39
39
  "test": "make buf-breaking",
@@ -9,19 +9,22 @@ option (common.ecs_component_id) = 1061;
9
9
 
10
10
  // The PBTriggerAreaResult component is used to transport the trigger collision event data for the PBTriggerArea component.
11
11
  // ADR: https://github.com/decentraland/adr/blob/2b30a5e2b4f359a7c22a68fb827db282f6e5f887/content/ADR-258-trigger-areas.md
12
+ //
13
+ // All positions, rotations and scales are scene-relative: in scene coordinates, with the
14
+ // entity's full parent chain applied, not the entity's local Transform.
12
15
  message PBTriggerAreaResult {
13
16
  // Trigger data object
14
17
  message Trigger {
15
18
  uint32 entity = 1; // The entity that triggered the Trigger Area
16
19
  uint32 layers = 2; // The collision layermask of the entity that triggered the Trigger Area
17
- decentraland.common.Vector3 position = 3; // The position of the entity that triggered the trigger
18
- decentraland.common.Quaternion rotation = 4; // The rotation of the entity that triggered the trigger
19
- decentraland.common.Vector3 scale = 5; // The scale of the entity that triggered the trigger
20
+ decentraland.common.Vector3 position = 3; // The scene-relative position of the entity that triggered the trigger
21
+ decentraland.common.Quaternion rotation = 4; // The scene-relative rotation of the entity that triggered the trigger
22
+ decentraland.common.Vector3 scale = 5; // The scene-relative scale of the entity that triggered the trigger
20
23
  }
21
24
 
22
25
  uint32 triggered_entity = 1; // The entity that was triggered (this is the entity that owns the trigger area)
23
- decentraland.common.Vector3 triggered_entity_position = 2; // The position of the triggered entity at the time of the trigger
24
- decentraland.common.Quaternion triggered_entity_rotation = 3; // The rotation of the triggered entity at the time of the trigger
26
+ decentraland.common.Vector3 triggered_entity_position = 2; // The scene-relative position of the triggered entity at the time of the trigger
27
+ decentraland.common.Quaternion triggered_entity_rotation = 3; // The scene-relative rotation of the triggered entity at the time of the trigger
25
28
  TriggerAreaEventType event_type = 4; // The state of the trigger event (ENTER, STAY, EXIT)
26
29
  uint32 timestamp = 5; // The timestamp of the trigger event
27
30
  Trigger trigger = 6;