/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/joints/ |
HingeJoint.java | 41 import com.jme3.math.Vector3f; 54 protected Vector3f axisA; 55 protected Vector3f axisB; 69 public HingeJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, Vector3f axisA, Vector3f axisB) { 111 capsule.write(axisA, "axisA", new Vector3f()); 112 capsule.write(axisB, "axisB", new Vector3f()); 131 this.axisA = (Vector3f) capsule.readSavable("axisA", new Vector3f()) [all...] |
/external/jmonkeyengine/engine/src/test/jme3test/bullet/ |
TestAttachGhostObject.java | 46 import com.jme3.math.Vector3f; 59 private Vector3f tempVec = new Vector3f(); 98 Node holderNode = PhysicsTestHelper.createPhysicsTestNode(assetManager, new BoxCollisionShape(new Vector3f(.1f, .1f, .1f)), 0); 99 holderNode.getControl(RigidBodyControl.class).setPhysicsLocation(new Vector3f(0f, 0, 0f)); 103 Node hammerNode = PhysicsTestHelper.createPhysicsTestNode(assetManager, new BoxCollisionShape(new Vector3f(.3f, .3f, .3f)), 1); 104 hammerNode.getControl(RigidBodyControl.class).setPhysicsLocation(new Vector3f(0f, -1, 0f)); 109 collisionNode = PhysicsTestHelper.createPhysicsTestNode(assetManager, new BoxCollisionShape(new Vector3f(.3f, .3f, .3f)), 0); 110 collisionNode.getControl(RigidBodyControl.class).setPhysicsLocation(new Vector3f(1.8f, 0, 0f)); 120 joint = new HingeJoint(holderNode.getControl(RigidBodyControl.class), hammerNode.getControl(RigidBodyControl.class), Vector3f.ZERO, new Vector3f(0f, -1, 0f), Vector3f.UNIT_Z, Vector3f.UNIT_Z) [all...] |
TestPhysicsHingeJoint.java | 44 import com.jme3.math.Vector3f; 89 Node holderNode=PhysicsTestHelper.createPhysicsTestNode(assetManager, new BoxCollisionShape(new Vector3f( .1f, .1f, .1f)),0); 90 holderNode.getControl(RigidBodyControl.class).setPhysicsLocation(new Vector3f(0f,0,0f)); 94 Node hammerNode=PhysicsTestHelper.createPhysicsTestNode(assetManager, new BoxCollisionShape(new Vector3f( .3f, .3f, .3f)),1); 95 hammerNode.getControl(RigidBodyControl.class).setPhysicsLocation(new Vector3f(0f,-1,0f)); 99 joint=new HingeJoint(holderNode.getControl(RigidBodyControl.class), hammerNode.getControl(RigidBodyControl.class), Vector3f.ZERO, new Vector3f(0f,-1,0f), Vector3f.UNIT_Z, Vector3f.UNIT_Z);
|
TestPhysicsCar.java | 48 import com.jme3.math.Vector3f; 61 private Vector3f jumpForce = new Vector3f(0, 3000, 0); 105 BoxCollisionShape box = new BoxCollisionShape(new Vector3f(1.2f, 0.5f, 2.4f)); 106 compoundShape.addChildShape(box, new Vector3f(0, 1, 0)); 124 Vector3f wheelDirection = new Vector3f(0, -1, 0); // was 0, -1, 0 125 Vector3f wheelAxle = new Vector3f(-1, 0, 0); // was -1, 0, 0 139 vehicle.addWheel(node1, new Vector3f(-xOff, yOff, zOff) [all...] |
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/animations/ |
CalculationBone.java | 6 import com.jme3.math.Vector3f;
20 private Vector3f startTranslation;
24 private Vector3f startScale;
25 private Vector3f[] translations;
27 private Vector3f[] scales;
36 this.translations = new Vector3f[boneFramesCount];
38 this.scales = new Vector3f[boneFramesCount];
72 public Vector3f getEndPoint() {
74 return new Vector3f(0, this.getLocalScale().y, 0);
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/ |
StripBox.java | 36 import com.jme3.math.Vector3f; 88 updateGeometry(Vector3f.ZERO, x, y, z); 103 public StripBox(Vector3f center, float x, float y, float z) { 119 public StripBox(Vector3f min, Vector3f max) { 152 Vector3f[] vert = computeVertices(); 153 Vector3f norm = new Vector3f(); 175 Vector3f[] v = computeVertices();
|
Dome.java | 40 import com.jme3.math.Vector3f; 63 private Vector3f center; 83 * @see #Dome(java.lang.String, com.jme.math.Vector3f, int, int, float) 86 this(new Vector3f(0, 0, 0), planes, radialSamples, radius); 106 public Dome(Vector3f center, int planes, int radialSamples, 133 public Dome(Vector3f center, int planes, int radialSamples, 139 public Vector3f getCenter() { 180 public void updateGeometry(Vector3f center, int planes, 183 this.center = center != null ? center : new Vector3f(0, 0, 0); 223 Vector3f tempVc = vars.vect3 [all...] |
Surface.java | 6 import com.jme3.math.Vector3f;
88 Vector3f[] vertices = new Vector3f[(uSegments + 1) * (vSegments + 1)];
95 Vector3f interpolationResult = new Vector3f();
120 Map<Vector3f, Vector3f> normalMap = new HashMap<Vector3f, Vector3f>(vertices.length);
122 Vector3f n = FastMath.computeNormal(vertices[indices[i]], vertices[indices[i + 1]], vertices[indices[i + 2] (…) [all...] |
/external/eigen/demos/opengl/ |
camera.cpp | 30 setPosition(Vector3f::Constant(100.)); 31 setTarget(Vector3f::Zero()); 89 Vector3f Camera::direction(void) const 91 return - (orientation() * Vector3f::UnitZ()); 93 Vector3f Camera::up(void) const 95 return orientation() * Vector3f::UnitY(); 97 Vector3f Camera::right(void) const 99 return orientation() * Vector3f::UnitX(); 102 void Camera::setDirection(const Vector3f& newDirection) 105 Vector3f up = this->up() [all...] |
trackball.h | 33 bool mapToSphere( const Eigen::Vector2i& p2, Eigen::Vector3f& v3); 36 Eigen::Vector3f mLastPoint3D;
|
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/joints/ |
SixDofSpringJoint.java | 36 import com.jme3.math.Vector3f; 63 public SixDofSpringJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, Matrix3f rotA, Matrix3f rotB, boolean useLinearReferenceFrameA) { 90 native long createJoint(long objectIdA, long objectIdB, Vector3f pivotA, Matrix3f rotA, Vector3f pivotB, Matrix3f rotB, boolean useLinearReferenceFrameA);
|
/external/jmonkeyengine/engine/src/core/com/jme3/collision/bih/ |
TriangleAxisComparator.java | 35 import com.jme3.math.Vector3f; 48 Vector3f c1 = o1.getCenter(); 49 Vector3f c2 = o2.getCenter();
|
/external/jmonkeyengine/engine/src/core/com/jme3/effect/influencers/ |
EmptyParticleInfluencer.java | 7 import com.jme3.math.Vector3f; 30 public void setInitialVelocity(Vector3f initialVelocity) { 34 public Vector3f getInitialVelocity() {
|
/external/jmonkeyengine/engine/src/tools/jme3tools/optimize/ |
TestCollector.java | 35 import com.jme3.math.Vector3f; 44 Vector3f z = Vector3f.ZERO;
|
/external/jmonkeyengine/engine/src/core/com/jme3/light/ |
PointLight.java | 39 import com.jme3.math.Vector3f;
55 protected Vector3f position = new Vector3f();
74 * @see PointLight#setPosition(com.jme3.math.Vector3f)
76 public Vector3f getPosition() {
85 public void setPosition(Vector3f position) {
149 position = (Vector3f) ic.readSavable("position", null);
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/lodcalc/util/ |
EntropyComputeUtil.java | 7 import com.jme3.math.Vector3f; 33 Vector3f pos = new Vector3f(); 34 Vector3f dir = new Vector3f(0, -1, 0); 62 Vector3f contactPoint = results.getClosestCollision().getContactPoint();
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/ |
TerrainPatch.java | 95 protected Vector3f stepScale;
121 this(name, size, new Vector3f(1,1,1), null, new Vector3f(0,0,0));
140 public TerrainPatch(String name, int size, Vector3f stepScale,
141 float[] heightMap, Vector3f origin) {
168 public TerrainPatch(String name, int size, Vector3f stepScale,
169 float[] heightMap, Vector3f origin, int totalSize,
324 private void setInBuffer(Mesh mesh, int index, Vector3f normal, Vector3f tangent, Vector3f binormal) { [all...] |
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/constraints/ |
ConstraintShrinkWrap.java | 9 import com.jme3.math.Vector3f;
50 List<Vector3f> pts = new ArrayList<Vector3f>();
57 pts.add(new Vector3f(floatBuffer.get(i), floatBuffer.get(i + 1), floatBuffer.get(i + 2)));
67 Vector3f[] translations = track.getTranslations();
71 Vector3f currentTranslation = translations[frame];
74 Vector3f minDistancePoint = null;
76 for(Vector3f p : pts) {
|
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/ |
PhysicsCharacter.java | 41 import com.jme3.math.Vector3f; 54 protected Vector3f walkDirection = new Vector3f(); 104 public void warp(Vector3f location) { 108 private native void warp(long characterId, Vector3f location); 117 public void setWalkDirection(Vector3f vec) { 122 private native void setWalkDirection(long characterId, Vector3f vec); 127 public Vector3f getWalkDirection() { 217 public void setPhysicsLocation(Vector3f location) { 224 public Vector3f getPhysicsLocation(Vector3f trans) [all...] |
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/collision/ |
PhysicsCollisionEvent.java | 36 import com.jme3.math.Vector3f; 150 public Vector3f getLateralFrictionDir1() { 154 public Vector3f getLateralFrictionDir2() { 166 public Vector3f getLocalPointA() { 170 public Vector3f getLocalPointB() { 174 public Vector3f getNormalWorldOnB() { 186 public Vector3f getPositionWorldOnA() { 190 public Vector3f getPositionWorldOnB() {
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/lodcalc/ |
LodCalculator.java | 36 import com.jme3.math.Vector3f; 50 public boolean calculateLod(TerrainPatch terrainPatch, List<Vector3f> locations, HashMap<String,UpdatedTerrainPatch> updates);
|
/external/jmonkeyengine/engine/src/test/jme3test/model/anim/ |
TestAnimationFactory.java | 10 import com.jme3.math.Vector3f;
30 dl.setDirection(Vector3f.UNIT_XYZ.negate());
54 animationFactory.addTimeTranslation(3, new Vector3f(5, 0, 0));
56 animationFactory.addTimeTranslation(6, new Vector3f(0, 0, 0));
59 animationFactory.addTimeScale(2, new Vector3f(1, 1, 1));
61 animationFactory.addTimeScale(4, new Vector3f(1.5f, 1.5f, 1.5f));
63 animationFactory.addTimeScale(5, new Vector3f(1, 1, 1));
67 animationFactory.addTimeRotation(0.5f,new Quaternion().fromAngleAxis(FastMath.QUARTER_PI, Vector3f.UNIT_Z));
|
TestSpatialAnim.java | 10 import com.jme3.math.Vector3f;
30 dl.setDirection(Vector3f.UNIT_XYZ.negate());
58 Vector3f[] translations = new Vector3f[totalFrames];
60 Vector3f[] scales = new Vector3f[totalFrames];
64 translations[i] = new Vector3f(x, 0, 0);
67 scales[i] = Vector3f.UNIT_XYZ;
|
/external/jmonkeyengine/engine/src/core/com/jme3/cinematic/events/ |
MotionTrack.java | 45 import com.jme3.math.Vector3f; 65 protected Vector3f direction = new Vector3f(); 66 protected Vector3f lookAt; 67 protected Vector3f upVector; 200 oc.write(lookAt, "lookAt", Vector3f.ZERO); 201 oc.write(upVector, "upVector", Vector3f.UNIT_Y); 211 lookAt = (Vector3f) in.readSavable("lookAt", Vector3f.ZERO); 212 upVector = (Vector3f) in.readSavable("upVector", Vector3f.UNIT_Y) [all...] |
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/objects/ |
PhysicsCharacter.java | 48 import com.jme3.math.Vector3f; 59 protected Vector3f walkDirection = new Vector3f(); 69 private javax.vecmath.Vector3f tempVec = new javax.vecmath.Vector3f(); 102 public void warp(Vector3f location) { 113 public void setWalkDirection(Vector3f vec) { 121 public Vector3f getWalkDirection() { 197 public void setPhysicsLocation(Vector3f location) { 204 public Vector3f getPhysicsLocation(Vector3f trans) [all...] |