Interface HitboxInfoFactory
- All Known Implementing Classes:
HitboxInfoFactoryImpl
public interface HitboxInfoFactory
A class containing methods to create
HitboxInfo
instances. These-
Method Summary
Modifier and TypeMethodDescriptionstatic HitboxInfoFactory
instance()
interactHitbox
(BoundingBox boundingBox) Creates a hitbox that, by default, is interacted with by right-click outside of VR and by placing a hand inside the hitbox in VR.triggerHitbox
(BoundingBox boundingBox) Creates a hitbox that, by default, is interacted with by right-click outside of VR and by pressing the button bound to block breaking while a hand is inside the hitbox in VR.
-
Method Details
-
instance
- Returns:
- A HitboxInfoBuilder instance to access API functions. All details of this object not mentioned in this file are assumed to be an implementation detail, and may change at any time.
-
interactHitbox
Creates a hitbox that, by default, is interacted with by right-click outside of VR and by placing a hand inside the hitbox in VR.- Parameters:
boundingBox
- The BoundingBox representing the hitbox.- Returns:
- A HitboxInfo for use in Immersives.
-
triggerHitbox
Creates a hitbox that, by default, is interacted with by right-click outside of VR and by pressing the button bound to block breaking while a hand is inside the hitbox in VR.- Parameters:
boundingBox
- The BoundingBox representing the hitbox.- Returns:
- A HitboxInfo for use in Immersives.
-