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

Allow supplying custom scene root for behavior tree instantiation #184

Merged
merged 3 commits into from
Aug 5, 2024

Conversation

limbonaut
Copy link
Owner

@limbonaut limbonaut commented Aug 5, 2024

This is useful if you instantiate behavior trees or BTPlayer nodes from code.

This PR brings back scene_root parameter to BehaviorTree.instantiate after #181 removed it, but this time it's optional.

  • Adds custom_scene_root optional argument to BehaviorTree.instantiate()
  • Adds BTPlayer.set_scene_root_hint() method
  • Adds BTState.set_scene_root_hint() method

@limbonaut limbonaut added the enhancement New feature or request label Aug 5, 2024
- Adds new argument to `BehaviorTree.instantiate()`
- Adds `BTPlayer.set_scene_root_hint()` method
@limbonaut limbonaut changed the title Allow setting custom scene root for behavior trees Allow supplying custom scene root for behavior trees at instantiation Aug 5, 2024
@limbonaut limbonaut changed the title Allow supplying custom scene root for behavior trees at instantiation Allow supplying custom scene root for behavior tree instantiation Aug 5, 2024
@limbonaut limbonaut merged commit 14d8df0 into master Aug 5, 2024
16 checks passed
@limbonaut limbonaut deleted the custom-scene-root branch August 5, 2024 13:18
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.

None yet

1 participant