Java Code Examples for com.badlogic.gdx.math.Vector3#Zero
The following examples show how to use
com.badlogic.gdx.math.Vector3#Zero .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BulletConstructor.java From gdx-ai with Apache License 2.0 | 6 votes |
private void create (final Model model, final float mass, final btCollisionShape shape) { this.model = model; this.shape = shape; if (shape != null && mass >= 0) { // Calculate the local inertia, bodies with no mass are static Vector3 localInertia; if (mass == 0) localInertia = Vector3.Zero; else { shape.calculateLocalInertia(mass, tmpV); localInertia = tmpV; } // For now just pass null as the motionstate, we'll add that to the body in the entity itself bodyInfo = new btRigidBodyConstructionInfo(mass, null, shape, localInertia); } }
Example 2
Source File: PBRShader.java From gdx-gltf with Apache License 2.0 | 4 votes |
@Override public void set (BaseShader shader, int inputID, Renderable renderable, Attributes combinedAttributes) { FogAttribute attribute = combinedAttributes.get(FogAttribute.class, FogAttribute.FogEquation); Vector3 value = attribute == null ? Vector3.Zero : attribute.value; shader.set(inputID, value); }
Example 3
Source File: AndroidController.java From gdx-controllerutils with Apache License 2.0 | 4 votes |
@Override public Vector3 getAccelerometer (int accelerometerIndex) { return Vector3.Zero; }
Example 4
Source File: JamepadController.java From gdx-controllerutils with Apache License 2.0 | 4 votes |
@Override public Vector3 getAccelerometer(int accelerometerCode) { // not supported return Vector3.Zero; }
Example 5
Source File: GwtController.java From gdx-controllerutils with Apache License 2.0 | 4 votes |
@Override public Vector3 getAccelerometer(int accelerometerCode) { return Vector3.Zero; }
Example 6
Source File: ICadeController.java From gdx-controllerutils with Apache License 2.0 | 4 votes |
@Override public Vector3 getAccelerometer(int i) { // not supported return Vector3.Zero; }
Example 7
Source File: IosController.java From gdx-controllerutils with Apache License 2.0 | 4 votes |
@Override public Vector3 getAccelerometer(int i) { // TODO supported since iOS8 return Vector3.Zero; }
Example 8
Source File: Stage3D.java From gdx-vr with Apache License 2.0 | 4 votes |
public Stage3D() { super(); this.plane = new Plane(new Vector3(0, 0, 1), Vector3.Zero); }
Example 9
Source File: Stage3D.java From gdx-vr with Apache License 2.0 | 4 votes |
public Stage3D(Viewport viewport) { super(viewport); this.plane = new Plane(new Vector3(0, 0, 1), Vector3.Zero); }
Example 10
Source File: Stage3D.java From gdx-vr with Apache License 2.0 | 4 votes |
public Stage3D(Viewport viewport, SpriteBatch batch) { super(viewport, batch); this.plane = new Plane(new Vector3(0, 0, 1), Vector3.Zero); }
Example 11
Source File: AreaRenderer.java From Cubes with MIT License | 4 votes |
public Vector3 getOffset() { if (area == null) return Vector3.Zero; return offset; }