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

Added ARVR_Helpers script. #71

Merged
merged 1 commit into from
Mar 2, 2022

Conversation

Malcolmnixon
Copy link
Collaborator

This is a preliminary script related to issue #70 to help locate ARVR nodes.

I ended up not adding a function to look for the PlayerBody in here because it leads to circular dependencies. Instead my demo project adds the routine to the PlayerBody script:

    # Find the player body from our own node somewhere under the player
    var body := PlayerBody.get_player_body(self)

@BastiaanOlij
Copy link
Member

Looks good, just need to find a nice way to make sure this is accessible. It should really be auto loaded, I wish there was a way to automate this.

@BastiaanOlij
Copy link
Member

Ok, I never knew this. It used to be so that you had to autoload scripts to use them, but the combo of using class_name with static func will automatically load the script if you call the static function from anywhere else in the code. :)

@BastiaanOlij BastiaanOlij merged commit 11b4cf1 into GodotVR:master Mar 2, 2022
@Malcolmnixon Malcolmnixon deleted the helper-functions branch March 3, 2022 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants