Suggestion Closed · Implemented

Getting location of a bone (API)

#4371 opened by Unknown 2 years ago

Unknownreported this suggestion

Previously I was able to get the in-game location of a specific bone by using:

Vector locVec = model.getBone(this.bone).getPosition();

Which (I believe) was returning the location of the armorstand displaying the itemstack. How can I get this position in the new API, I believe this would be the in-game location of the display entity now.

I have tried all of the following:

model.getBone(this.bone).get().getTrueGlobalPosition(); model.getBone(this.bone).get().getGlobalPosition(); model.getBone(this.bone).get().getCachedPosition();

but none of these methods seem to be returning the actual location of the bone.

Unknowncommented

I should probably create an API method to easily grab the in world position of the bone.

Sign in to join the discussion.