Class PhysicsSweepTestResult

java.lang.Object
com.jme3.bullet.collision.PhysicsSweepTestResult

public class PhysicsSweepTestResult extends Object
Contains the results of a PhysicsSpace rayTest
  • Constructor Details

    • PhysicsSweepTestResult

      public PhysicsSweepTestResult()
    • PhysicsSweepTestResult

      public PhysicsSweepTestResult(PhysicsCollisionObject collisionObject, Vector3f hitNormalLocal, float hitFraction, boolean normalInWorldSpace)
  • Method Details

    • getCollisionObject

      public PhysicsCollisionObject getCollisionObject()
      Returns:
      the collisionObject
    • getHitNormalLocal

      public Vector3f getHitNormalLocal()
      Returns:
      the hitNormalLocal
    • getHitFraction

      public float getHitFraction()
      Returns:
      the hitFraction
    • isNormalInWorldSpace

      public boolean isNormalInWorldSpace()
      Returns:
      the normalInWorldSpace
    • fill

      public void fill(PhysicsCollisionObject collisionObject, Vector3f hitNormalLocal, float hitFraction, boolean normalInWorldSpace)