本文整理匯總了Java中eu.kudan.kudan.ARImageNode.rotateByDegrees方法的典型用法代碼示例。如果您正苦於以下問題:Java ARImageNode.rotateByDegrees方法的具體用法?Java ARImageNode.rotateByDegrees怎麽用?Java ARImageNode.rotateByDegrees使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類eu.kudan.kudan.ARImageNode
的用法示例。
在下文中一共展示了ARImageNode.rotateByDegrees方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setupArbiTrack
import eu.kudan.kudan.ARImageNode; //導入方法依賴的package包/類
public void setupArbiTrack() {
// Create an image node to be used as a target node
ARImageNode targetImageNode = new ARImageNode("target.png");
// Scale and rotate the image to the correct transformation.
targetImageNode.scaleByUniform(0.3f);
targetImageNode.rotateByDegrees(90, 1, 0, 0);
// Initialise gyro placement. Gyro placement positions content on a virtual floor plane where the device is aiming.
ARGyroPlaceManager gyroPlaceManager = ARGyroPlaceManager.getInstance();
gyroPlaceManager.initialise();
// Add target node to gyro place manager
gyroPlaceManager.getWorld().addChild(targetImageNode);
// Initialise the arbiTracker
ARArbiTrack arbiTrack = ARArbiTrack.getInstance();
arbiTrack.initialise();
// Set the arbiTracker target node to the node moved by the user.
arbiTrack.setTargetNode(targetImageNode);
// Add model node to world
arbiTrack.getWorld().addChild(modelNode);
}