當前位置: 首頁>>代碼示例>>Java>>正文


Java FastMath.QUARTER_PI屬性代碼示例

本文整理匯總了Java中com.jme3.math.FastMath.QUARTER_PI屬性的典型用法代碼示例。如果您正苦於以下問題:Java FastMath.QUARTER_PI屬性的具體用法?Java FastMath.QUARTER_PI怎麽用?Java FastMath.QUARTER_PI使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在com.jme3.math.FastMath的用法示例。


在下文中一共展示了FastMath.QUARTER_PI屬性的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: CopyOfPlayerPhysicsControl

public CopyOfPlayerPhysicsControl(TerrainLoader terrainLoader, Spawn spawn, BoundingBox boundingBox, boolean updateSpawn,
		AbstractSpawnEntity entity) {
	super(boundingBox.getXExtent(), boundingBox.getYExtent() * 2f, GlobalConstants.BASE_BIPED_WEIGHT);

	setMaxSlope(Constants.MOB_MAX_SLOPE);
	setMaxStepHeight(Constants.MOB_MAX_STEP_HEIGHT);
	rigidBody.setFriction(Constants.MOB_STATIONARY_FRICTION);

	tiltForward = new Quaternion(new float[] { FastMath.QUARTER_PI, 0f, 0f });

	this.entity = entity;
	this.terrainLoader = terrainLoader;
	this.updateSpawn = updateSpawn;
	this.spawn = spawn;

}
 
開發者ID:rockfireredmoon,項目名稱:iceclient,代碼行數:16,代碼來源:CopyOfPlayerPhysicsControl.java

示例2: PlayerPhysicsControl

public PlayerPhysicsControl(TerrainLoader terrainLoader, Spawn spawn, BoundingBox boundingBox, boolean updateSpawn,
		AbstractSpawnEntity entity) {
	super(boundingBox.getXExtent(), boundingBox.getYExtent() * 2f, GlobalConstants.BASE_BIPED_WEIGHT);

	// setMaxSlope(Constants.MOB_MAX_SLOPE);
	// setMaxStepHeight(Constants.MOB_MAX_STEP_HEIGHT);
	rigidBody.setFriction(Constants.MOB_STATIONARY_FRICTION);

	tiltForward = new Quaternion(new float[] { FastMath.QUARTER_PI, 0f, 0f });

	this.entity = entity;
	this.terrainLoader = terrainLoader;
	this.updateSpawn = updateSpawn;
	this.spawn = spawn;

}
 
開發者ID:rockfireredmoon,項目名稱:iceclient,代碼行數:16,代碼來源:PlayerPhysicsControl.java

示例3: CopyOfPlayerAnimControl

public CopyOfPlayerAnimControl(IcesceneApp app, AbstractSpawnEntity entity) {
	super(entity, app.getStateManager());
	this.app = app;
	tiltForward = new Quaternion(new float[] { FastMath.DEG_TO_RAD * 35f, 0f, 0f });
	tiltBackward = new Quaternion(new float[] { -FastMath.QUARTER_PI, 0f, 0f });
}
 
開發者ID:rockfireredmoon,項目名稱:iceclient,代碼行數:6,代碼來源:CopyOfPlayerAnimControl.java

示例4: PlayerAnimControl

public PlayerAnimControl(EntityContext app, Biped entity) {
	this.context = app;
	this.entity = entity;
	tiltForward = new Quaternion(new float[] { FastMath.DEG_TO_RAD * 35f, 0f, 0f });
	tiltBackward = new Quaternion(new float[] { -FastMath.QUARTER_PI, 0f, 0f });
}
 
開發者ID:rockfireredmoon,項目名稱:iceclient,代碼行數:6,代碼來源:PlayerAnimControl.java


注:本文中的com.jme3.math.FastMath.QUARTER_PI屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。