From 0ad02c64104063a5b23800323bbbfd8fc5913b60 Mon Sep 17 00:00:00 2001 From: WooxSolo Date: Sun, 27 Jun 2021 13:43:23 -0400 Subject: [PATCH] api: add game object model orientation Co-authored-by: Adam --- .../src/main/java/net/runelite/api/GameObject.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/runelite-api/src/main/java/net/runelite/api/GameObject.java b/runelite-api/src/main/java/net/runelite/api/GameObject.java index 0d81a48e46..f1797f416a 100644 --- a/runelite-api/src/main/java/net/runelite/api/GameObject.java +++ b/runelite-api/src/main/java/net/runelite/api/GameObject.java @@ -82,4 +82,15 @@ public interface GameObject extends TileObject Angle getOrientation(); Renderable getRenderable(); + + /** + * Gets the orientation of the model in JAU. + * This is typically 0 for non-actors, since + * most object's models are oriented prior to + * lighting during scene loading. See {@link #getOrientation()} + * instead for object orientation. + * + * @see net.runelite.api.coords.Angle + */ + int getModelOrientation(); }