本文整理汇总了Java中com.jme.math.Vector3f.ZERO属性的典型用法代码示例。如果您正苦于以下问题:Java Vector3f.ZERO属性的具体用法?Java Vector3f.ZERO怎么用?Java Vector3f.ZERO使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.jme.math.Vector3f
的用法示例。
在下文中一共展示了Vector3f.ZERO属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doUpdate
protected void doUpdate(float time)
{
Vector3f goalExtent = (isEngaged()?targetExtent:Vector3f.ZERO);
elapsedTime += time *2;
//while this size is < target extent, expand
if ((elapsedTime<EXPAND_TIME))
{
Vector3f grow =_store;
grow.set(goalExtent).subtractLocal(startingExtent);
grow.multLocal(elapsedTime/EXPAND_TIME);
model.getLocalScale().set(startingExtent).addLocal(grow);
getModel().getLocalRotation().slerp(startingRotation, targetRotation, (getElapsedTime()/EXPAND_TIME));
}else
{
getModel().getLocalRotation().set(targetRotation);
model.getLocalScale().set(goalExtent);
UpdateManager.getInstance().remove(animation);
}
getModel().refreshLockedData();
}
示例2: generateGoToPosition
private CellTransform generateGoToPosition(CellID cellID) {
CellTransform viewTransform = model.getCellTransformForCellID(cellID);
ServerSessionManager manager = LoginManager.getPrimary();
BoundingVolume boundsHint = new BoundingSphere(1.0f, Vector3f.ZERO);
CellTransform generated = CellPlacementUtils.getCellTransform(manager, boundsHint,
viewTransform);
LOGGER.fine("ORIGINAL:\n" + logTransform(viewTransform) + "\n"
+ "GENERATED:\n" + logTransform(generated));
return generated;
}
示例3: getPathPosition
/**
* Return the ith path position if it exists, or Vector3f.ZERO if it doesnt.
* @param pathNum
* @return
*/
public Vector3f getPathPosition(int i)
{
if (i<path.size())
return path.get(i);
return Vector3f.ZERO;
}
示例4: getOrigin
/**
* Override this to return the origin if use2DCameraPlane is set.
* @return
*/
public Vector3f getOrigin()
{
return Vector3f.ZERO;
}