I am using
BodyA.getPosition().y to get the
y vector of a body location so i may attach some text above its head, but the
log of that position prints out something like
3.666757..... I want this text to be moving when the body moves so it should be relative to the body position at all times until removed. Currently when I try to use this
speech = new TickerText( 0, 0, font, ptext, new TickerText.TickerTextOptions( 10 ), ResourceManager.getInstance().vertexManager ); speech.setBlendFunction( GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA ); speech.setScale( 0.5f ); speech.setAutoWrapWidth( 500f ); speech.setAutoWrap( AutoWrap.WORDS ); speech.setPosition( xVal, yVal );`
The text is not displayed on screen on screen at all, I figure its the x and y location being wrong because when I manually set x and y to positions I know would be on the screen area it is shown. I am looking for help as how to get the actual
Y coordinate of the body on screen so I can have the text follow the body.