Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Model Engine 4 Model Engine 4
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 105
    • Issues 105
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • Model Engine 4Model Engine 4
  • Issues
  • #6

Closed
Open
Created Oct 02, 2023 by Sanan Rao@SananR

Getting location of a bone (API)

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.

Edited Oct 02, 2023 by Sanan Rao
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking