Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ViewRenderable.builder().setView(this, R.layout.my_textview).build()
- .thenAccept(renderable -> {
- textViewRenderable= renderable;
- });
- if (plane.getType() == Plane.Type.VERTICAL) {
- float[] yAxis = plane.getCenterPose().getYAxis();
- Vector3 planeNormal = new Vector3(yAxis[0], yAxis[1], yAxis[2]);
- Quaternion upQuat = Quaternion.lookRotation(planeNormal, Vector3.up());
- andy.setWorldRotation(upQuat);
- }
Add Comment
Please, Sign In to add comment