Package com.jme3.bullet.collision
Class PhysicsSweepTestResult
java.lang.Object
com.jme3.bullet.collision.PhysicsSweepTestResult
Contains the results of a PhysicsSpace rayTest
-
Constructor Summary
ConstructorDescriptionPhysicsSweepTestResult
(PhysicsCollisionObject collisionObject, Vector3f hitNormalLocal, float hitFraction, boolean normalInWorldSpace) -
Method Summary
Modifier and TypeMethodDescriptionvoid
fill
(PhysicsCollisionObject collisionObject, Vector3f hitNormalLocal, float hitFraction, boolean normalInWorldSpace) float
boolean
-
Constructor Details
-
PhysicsSweepTestResult
public PhysicsSweepTestResult() -
PhysicsSweepTestResult
public PhysicsSweepTestResult(PhysicsCollisionObject collisionObject, Vector3f hitNormalLocal, float hitFraction, boolean normalInWorldSpace)
-
-
Method Details
-
getCollisionObject
- Returns:
- the collisionObject
-
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)
-