Interface HitboxInfoFactory

All Known Implementing Classes:
HitboxInfoFactoryImpl

public interface HitboxInfoFactory
A class containing methods to create HitboxInfo instances. These
  • Method Summary

    Modifier and Type
    Method
    Description
     
    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.
    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

      static HitboxInfoFactory 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

      HitboxInfo 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.
      Parameters:
      boundingBox - The BoundingBox representing the hitbox.
      Returns:
      A HitboxInfo for use in Immersives.
    • triggerHitbox

      HitboxInfo 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.
      Parameters:
      boundingBox - The BoundingBox representing the hitbox.
      Returns:
      A HitboxInfo for use in Immersives.