Guest User

Untitled

a guest
Jun 18th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. ViewRenderable.builder().setView(this, R.layout.my_textview).build()
  2. .thenAccept(renderable -> {
  3. textViewRenderable= renderable;
  4. });
  5.  
  6. if (plane.getType() == Plane.Type.VERTICAL) {
  7. float[] yAxis = plane.getCenterPose().getYAxis();
  8. Vector3 planeNormal = new Vector3(yAxis[0], yAxis[1], yAxis[2]);
  9. Quaternion upQuat = Quaternion.lookRotation(planeNormal, Vector3.up());
  10. andy.setWorldRotation(upQuat);
  11. }
Add Comment
Please, Sign In to add comment