Package com.jme3.bullet
Class RayTestFlag
java.lang.Object
com.jme3.bullet.RayTestFlag
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
Modifier and TypeFieldDescriptionstatic 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 classstatic 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
-
Field Details
-
FilterBackfaces
public static final int FilterBackfacesfilter back faces (native value: kF_FilterBackfaces)- See Also:
-
KeepUnflippedNormal
public static final int KeepUnflippedNormalwhen a ray hits a back-facing triangle, don't reverse the face normal (native value: kF_KeepUnflippedNormal)- See Also:
-
SubSimplexRaytest
public static final int SubSimplexRaytestuse 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 GjkRaytestuse the GJK algorithm for ray-versus-convex intersection (native value: kF_UseGjkConvexCastRaytest)- See Also:
-
DisableHeightfieldAccelerator
public static final int DisableHeightfieldAcceleratordisable the heightfield raycast accelerator (native value: kF_DisableHeightfieldAccelerator)- See Also:
-
logger
message logger for this class
-
-
Method Details
-
describe
Generate a textual description of the specified flags.- Parameters:
flags
- the ray-test flags to describe- Returns:
- description (not null, may be empty)
-