protected void update ( float scale ) { GVRSceneObject owner = getOwnerObject ( ) ; if ( isEnabled ( ) && ( owner != null ) && owner . isEnabled ( ) ) { float w = getWidth ( ) ; float h = getHeight ( ) ; mPose . update ( mARPlane . getCenterPose ( ) , scale ) ; Matrix4f m = new Matrix4f ( ) ; m . set ( mPose . getPoseMatrix ( ) ) ; m . scaleLocal ( w * 0.95f , h * 0.95f , 1.0f ) ; owner . getTransform ( ) . setModelMatrix ( m ) ; } }
Update the plane based on arcore best knowledge of the world