#Kunai Entity not Rendering

16 messages · Page 1 of 1 (latest)

cyan jasper
#

what image are you trying to use

empty rapids
#

kunai.png

#

in the entity/kunai/

cyan jasper
#

what is your code doing though

empty rapids
#

what do you mean?

cyan jasper
#

in your renderer

empty rapids
#

well the tutorial i was watching was for a tomahawk spinning when thrown, so i thought it could be related to that

empty rapids
cyan jasper
#

well, the code you posted is using a tomahawk texture

empty rapids
#

oh shit

cyan jasper
#

thats why i asked you what your code was doing

empty rapids
#

alr

#

tysm

#

i shouldve checked myself before asking

#

@cyan jasper different issue now, the error is Cannot read field "y" because "entity.groundedOffset" is null
and the code is

matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(entity.groundedOffset.y));
matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(entity.groundedOffset.x));
#

in the tutorial, it said to do getY(), but its not listed in the autocomplete