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

[Pointer] Display play area sized cursor option on all pointers with boundary collision detection #20

Closed
thestonefox opened this issue Apr 29, 2016 · 1 comment

Comments

@thestonefox
Copy link
Member

Project a play area sized cursor on the floor where the pointer is pointing to to show where the play area will be after teleport.

The cursor will also have a trigger collider on it so if it collides with any other objects it can set a flag to say a collision has happened and if a collision is happening then don't throw the set new teleport location.

This value can also be used by extended pointers to change the colour of their beam depending on whether the location is valid or invalid.

Can get the size of the play area from the SteamVR_PlayArea script as it contains a public Vector3[] verticies variable which contains the relevant points for drawing the play area boundaries, so can use this numbers to create the cursor at the right size.

@thestonefox
Copy link
Member Author

Completed with 87c6ebb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant