Examples of GhostControl


Examples of com.jme3.bullet.control.GhostControl

    @Override
    public void setSpatial(Spatial spatial) {
        super.setSpatial(spatial);

        if (spatial != null) {
            losGhost = new GhostControl(new SphereCollisionShape(losRadius));
            attackGhost = new GhostControl(new SphereCollisionShape(fightRadius));
            addGhost(losGhost);
            addGhost(attackGhost);
            fireInit();
        }
    }
View Full Code Here

Examples of com.jme3.bullet.control.GhostControl

    if (physics != null) {
      spatial.removeControl(physics);
    }
    if (isHologram) {
      spatial.setShadowMode(ShadowMode.Off);
      physics = new GhostControl(shape);
    }
    else {
      spatial.setShadowMode(ShadowMode.CastAndReceive);
      physics = new RigidBodyControl(shape, mass);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.