Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement poke feature and demo #226

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

BastiaanOlij
Copy link
Member

@BastiaanOlij BastiaanOlij commented Oct 25, 2022

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:

  • interact with our Viewport2Din3D where we mimic mouse input where the sphere collides with the viewport
  • pushing objects in the scene around

The 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.
image

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.

@BastiaanOlij BastiaanOlij added the enhancement New feature or request label Oct 25, 2022
@BastiaanOlij BastiaanOlij added this to the 3.1.0 milestone Oct 25, 2022
@BastiaanOlij BastiaanOlij self-assigned this Oct 25, 2022
@BastiaanOlij BastiaanOlij force-pushed the poke_feature branch 2 times, most recently from e0c2459 to 1995d05 Compare October 25, 2022 23:56
@BastiaanOlij BastiaanOlij marked this pull request as ready for review October 25, 2022 23:56
Copy link
Collaborator

@Malcolmnixon Malcolmnixon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works well in 3.4.5 now.

@BastiaanOlij BastiaanOlij merged commit 6a9390f into GodotVR:master Oct 26, 2022
@BastiaanOlij BastiaanOlij deleted the poke_feature branch October 26, 2022 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants