![Gravity Changer](https://media.forgecdn.net/avatars/thumbnails/445/926/256/256/637702638820232319.png)
API request
qouteall opened this issue ยท 2 comments
I am considering integrating Immersive Portals (ImmPtl) mod with Gravity Changer mod.
To accomplish that, I need GravityChanger to provide some sets of API:
- Get the offset of the player's eye pos from the player's feet pos.
Set a player's gravity direction without changing the camera position. (currently, the API keeps the feet pos and change eye pos when changing gravity)Turns out not neededGet the camera rotation quaternionTurns out not needed
(this list may change)
I can implement these API on ImmPtl's side. But it would be better that gravity changer provides these API.
And I prefer the API of another style. For example, currently setting a player's gravity direction is done by
((RotatableEntityAccessor) player).gravitychanger$setGravityDirection(direction, false);
I want this kind of API:
GravityChangerAPI.setGravityDirection(player, direction)
Is this what you need? 53276ff