ExtendRealityLtd / ExtendRealityLtd/Tilia.Interactions.SnapZone.Unity

Object moves by it own, when Snapzone is attached to an interactable object

Open
#234 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
6
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Environment

Tested on Unity 2021.3.19f1

- Tilia CameraRigs TrackedAlias Unity Version 2.1.0 - March 11, 2023
- Tilia CameraRigs XRPluginFramework Unity Version 2.1.0 - March 11, 2023
- Tilia Input UnityInputSystem Version 2.2.0 - March 11, 2023
- Tilia Interactions Interactables Unity Version 2.11.0 - March 11, 2023
- Tilia Interactions SnapZone Unity Version 2.1.36 - March 11, 2023
- Tilia Locomotors AxisMove Unity Version 2.0.18 - March 11, 2023
- Tilia Output InteractorHaptics Unity Version 2.1.21 - March 11, 2023

No Third party Dependencies

### Steps to reproduce

1. Add a snap zone on an interactable cube.
2. On this interactable cube is the snap zone attached and not overlapping with the Object
3. when I move the cube, I also move an attached snap zone.
4. When I stop grabbing the cube, the object is forced on its own somehow and floats away.

Additional Info:

1.
![Screenshot 2023-03-13 191642](https://user-images.githubusercontent.com/84817043/224808343-adffcecc-0fd9-4fe1-9097-614d3f6ae6bf.png)

2.

![Screenshot 2023-03-13 202535](https://user-images.githubusercontent.com/84817043/224811543-a9060fc3-8cda-4246-8a1e-f41ec113ced5.png)

3.

https://user-images.githubusercontent.com/84817043/224808387-f38f9d1b-4ea8-4e07-9ac5-d0f93148434a.mp4

### Expected behavior

When the Snap zone is attached (also with a slightly offset) the object should not be forced to move against the snap zone. I Want to add another interactable object to this interactable object. to make a bigger one. The new object should be stay connected when I grab it.

### Current behavior

When I Grab and release an interactable Object where a snapzone is attached (so that the snapzone moves with it) the Object flies away in the direction of the snapzone. It looks like it is forces by its on to reach its own snap zone.

The "ActivationCollisionArea" is not intersecting with the original interactable attached object. Which means, normally it not be forced to move in its own unreachable snapzone. I used and box collider for the Zone (Screenshot 3).

When I hold the Object which haves the Snap zone and grab another Object and move it inside of the zone --> The object behaves normal because the Snap zone is filled. When I detach the object (and not holding the Object with the SZ) It stays as long I grab it again and release it. The object flies aways as described.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.