Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've got a few more things to finish here but the core works.
This implements a feature where a rigid body with a sphere collision shape follows the location that its anchored at.
This can be used for two use cases:
Viewport2Din3D
where we mimic mouse input where the sphere collides with the viewportThe demo only shows off the first by implementing a simple drawing tool with a touch interface. You can interact with this with your index finger, but the poke feature is not limited to fingers, it can be attached to the palm or to a pencil object.
I've also added some cubes from our pickup demo in this scene, you can push them around with your finger.
Do note that while you can interact with multiple poke objects (one on each hand or even each finger) the limits of the mouse emulation will confuse the Viewport2Din3D implementation, not much we can do there.
Also note that you can't really combine this together with the laser pointer as they both emulate mouse input and could fight with the poke input.