Lines Matching defs:results

653      * Performs a ray collision test and returns the results as a list of PhysicsRayTestResults
656 List<PhysicsRayTestResult> results = new LinkedList<PhysicsRayTestResult>();
657 dynamicsWorld.rayTest(Converter.convert(from, rayVec1), Converter.convert(to, rayVec2), new InternalRayListener(results));
658 return results;
662 * Performs a ray collision test and returns the results as a list of PhysicsRayTestResults
664 public List<PhysicsRayTestResult> rayTest(Vector3f from, Vector3f to, List<PhysicsRayTestResult> results) {
665 results.clear();
666 dynamicsWorld.rayTest(Converter.convert(from, rayVec1), Converter.convert(to, rayVec2), new InternalRayListener(results));
667 return results;
672 private List<PhysicsRayTestResult> results;
674 public InternalRayListener(List<PhysicsRayTestResult> results) {
675 this.results = results;
681 results.add(new PhysicsRayTestResult(obj, Converter.convert(lrr.hitNormalLocal), lrr.hitFraction, bln));
687 * Performs a sweep collision test and returns the results as a list of PhysicsSweepTestResults<br/>
692 List<PhysicsSweepTestResult> results = new LinkedList<PhysicsSweepTestResult>();
695 return results;
697 dynamicsWorld.convexSweepTest((ConvexShape) shape.getCShape(), Converter.convert(start, sweepTrans1), Converter.convert(end, sweepTrans2), new InternalSweepListener(results));
698 return results;
703 * Performs a sweep collision test and returns the results as a list of PhysicsSweepTestResults<br/>
707 public List<PhysicsSweepTestResult> sweepTest(CollisionShape shape, Transform start, Transform end, List<PhysicsSweepTestResult> results) {
708 results.clear();
711 return results;
713 dynamicsWorld.convexSweepTest((ConvexShape) shape.getCShape(), Converter.convert(start, sweepTrans1), Converter.convert(end, sweepTrans2), new InternalSweepListener(results));
714 return results;
719 private List<PhysicsSweepTestResult> results;
721 public InternalSweepListener(List<PhysicsSweepTestResult> results) {
722 this.results = results;
728 results.add(new PhysicsSweepTestResult(obj, Converter.convert(lcr.hitNormalLocal), lcr.hitFraction, bln));