- add some javadoc to PhysicsRayTestResult

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9678 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 64cadc1284
commit abfc4d6c45
  1. 9
      engine/src/jbullet/com/jme3/bullet/collision/PhysicsRayTestResult.java

@ -34,7 +34,8 @@ package com.jme3.bullet.collision;
import com.jme3.math.Vector3f; import com.jme3.math.Vector3f;
/** /**
* Contains the results of a PhysicsSpace rayTest * Contains the results of a PhysicsSpace rayTest.
* <b>Read data only in callback method, object is reused</b>
* @author normenhansen * @author normenhansen
*/ */
public class PhysicsRayTestResult { public class PhysicsRayTestResult {
@ -55,20 +56,22 @@ public class PhysicsRayTestResult {
} }
/** /**
* @return the collisionObject * @return the PhysicsObject the ray collided with
*/ */
public PhysicsCollisionObject getCollisionObject() { public PhysicsCollisionObject getCollisionObject() {
return collisionObject; return collisionObject;
} }
/** /**
* @return the hitNormalLocal * @return the normal of the collision in the objects local space
*/ */
public Vector3f getHitNormalLocal() { public Vector3f getHitNormalLocal() {
return hitNormalLocal; return hitNormalLocal;
} }
/** /**
* The hitFraction is the fraction of the ray length (yeah, I know) at which the collision occurred.
* If e.g. the raytest was from 0,0,0 to 0,6,0 and the hitFraction is 0.5 then the collision occurred at 0,3,0
* @return the hitFraction * @return the hitFraction
*/ */
public float getHitFraction() { public float getHitFraction() {

Loading…
Cancel
Save