接口 CollisionCallback

所有超级接口:
org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface CollisionCallback extends org.lwjgl.system.CallbackI
  • 嵌套类概要

    从接口继承的嵌套类/接口 org.lwjgl.system.Pointer

    org.lwjgl.system.Pointer.Default
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final org.lwjgl.system.libffi.FFICIF
     

    从接口继承的字段 org.lwjgl.system.Pointer

    BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
  • 方法概要

    修饰符和类型
    方法
    说明
    default void
    callback(long ret, long args)
     
    default org.lwjgl.system.libffi.FFICIF
     
    default boolean
    invoke(double startX, double startY, double startZ, double endX, double endY, double endZ, long output)
     
    boolean
    trace(org.joml.Vector3d start, org.joml.Vector3d end, org.joml.Vector3d outCollisionPosition, org.joml.Vector3d outCollisionNormal)
    Perform a ray cast.

    从接口继承的方法 org.lwjgl.system.CallbackI

    address
  • 字段详细资料

    • CIF

      static final org.lwjgl.system.libffi.FFICIF CIF
  • 方法详细资料

    • trace

      boolean trace(org.joml.Vector3d start, org.joml.Vector3d end, org.joml.Vector3d outCollisionPosition, org.joml.Vector3d outCollisionNormal)
      Perform a ray cast.
      参数:
      start - Start position of the ray. The value is reused, so do not store its reference.
      end - End position of the ray. The value is reused, so do not store its reference.
      outCollisionPosition - Collision position output (implementers should mutate this)
      outCollisionNormal - Collision normal output (implementers should mutate this)
      返回:
      whether the ray cast hits anything
      从以下版本开始:
      2.2.0
    • getCallInterface

      @Nonnull default org.lwjgl.system.libffi.FFICIF getCallInterface()
      指定者:
      getCallInterface 在接口中 org.lwjgl.system.CallbackI
    • callback

      default void callback(long ret, long args)
      指定者:
      callback 在接口中 org.lwjgl.system.CallbackI
    • invoke

      default boolean invoke(double startX, double startY, double startZ, double endX, double endY, double endZ, long output)