Class RayTestFlag

java.lang.Object
com.jme3.bullet.RayTestFlag

public final class RayTestFlag extends Object
Named flags for use with a ray test. See https://github.com/bulletphysics/bullet3/blob/master/src/BulletCollision/NarrowPhaseCollision/btRaycastCallback.h
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    disable the heightfield raycast accelerator (native value: kF_DisableHeightfieldAccelerator)
    static final int
    filter back faces (native value: kF_FilterBackfaces)
    static final int
    use the GJK algorithm for ray-versus-convex intersection (native value: kF_UseGjkConvexCastRaytest)
    static final int
    when a ray hits a back-facing triangle, don't reverse the face normal (native value: kF_KeepUnflippedNormal)
    static final Logger
    message logger for this class
    static final int
    use the fast/approximate algorithm for ray-versus-convex intersection, which is the default if no flags are set (native value: kF_UseSubSimplexConvexCastRaytest)
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    describe(int flags)
    Generate a textual description of the specified flags.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FilterBackfaces

      public static final int FilterBackfaces
      filter back faces (native value: kF_FilterBackfaces)
      See Also:
    • KeepUnflippedNormal

      public static final int KeepUnflippedNormal
      when a ray hits a back-facing triangle, don't reverse the face normal (native value: kF_KeepUnflippedNormal)
      See Also:
    • SubSimplexRaytest

      public static final int SubSimplexRaytest
      use the fast/approximate algorithm for ray-versus-convex intersection, which is the default if no flags are set (native value: kF_UseSubSimplexConvexCastRaytest)
      See Also:
    • GjkRaytest

      public static final int GjkRaytest
      use the GJK algorithm for ray-versus-convex intersection (native value: kF_UseGjkConvexCastRaytest)
      See Also:
    • DisableHeightfieldAccelerator

      public static final int DisableHeightfieldAccelerator
      disable the heightfield raycast accelerator (native value: kF_DisableHeightfieldAccelerator)
      See Also:
    • logger

      public static final Logger logger
      message logger for this class
  • Method Details

    • describe

      public static String describe(int flags)
      Generate a textual description of the specified flags.
      Parameters:
      flags - the ray-test flags to describe
      Returns:
      description (not null, may be empty)