/** * enable the display of the path and the waypoints * @param manager the assetManager * @param rootNode the node where the debug shapes must be attached */ public void enableDebugShape(AssetManager manager, Node rootNode) { assetManager = manager; // computeTotalLentgh(); attachDebugNode(rootNode); }
/** * sets the tension of the curve (only for catmull rom) 0.0 will give a linear curve, 1.0 a round curve * @param curveTension */ public void setCurveTension(float curveTension) { spline.setCurveTension(curveTension); if (debugNode != null) { Node parent = debugNode.getParent(); debugNode.removeFromParent(); debugNode.detachAllChildren(); debugNode = null; attachDebugNode(parent); } }
/** * sets the type of spline used for the path interpolation for this path * @param pathSplineType */ public void setPathSplineType(SplineType pathSplineType) { spline.setType(pathSplineType); if (debugNode != null) { Node parent = debugNode.getParent(); debugNode.removeFromParent(); debugNode.detachAllChildren(); debugNode = null; attachDebugNode(parent); } }
/** * Sets the path to be a cycle * @param cycle */ public void setCycle(boolean cycle) { spline.setCycle(cycle); if (debugNode != null) { Node parent = debugNode.getParent(); debugNode.removeFromParent(); debugNode.detachAllChildren(); debugNode = null; attachDebugNode(parent); } }
/** * enable the display of the path and the waypoints * @param manager the assetManager * @param rootNode the node where the debug shapes must be attached */ public void enableDebugShape(AssetManager manager, Node rootNode) { assetManager = manager; // computeTotalLentgh(); attachDebugNode(rootNode); }
/** * sets the type of spline used for the path interpolation for this path * @param pathSplineType */ public void setPathSplineType(SplineType pathSplineType) { spline.setType(pathSplineType); if (debugNode != null) { Node parent = debugNode.getParent(); debugNode.removeFromParent(); debugNode.detachAllChildren(); debugNode = null; attachDebugNode(parent); } }
/** * sets the tension of the curve (only for catmull rom) 0.0 will give a linear curve, 1.0 a round curve * @param curveTension */ public void setCurveTension(float curveTension) { spline.setCurveTension(curveTension); if (debugNode != null) { Node parent = debugNode.getParent(); debugNode.removeFromParent(); debugNode.detachAllChildren(); debugNode = null; attachDebugNode(parent); } }
/** * Sets the path to be a cycle * @param cycle */ public void setCycle(boolean cycle) { spline.setCycle(cycle); if (debugNode != null) { Node parent = debugNode.getParent(); debugNode.removeFromParent(); debugNode.detachAllChildren(); debugNode = null; attachDebugNode(parent); } }