hammy275 / mc-vr-api

An API to allow mod developers to see VR player data from Vivecraft.
GNU Lesser General Public License v3.0
8 stars 0 forks source link

Access to `vrdata_world_pre` and `vrdata_world_render` #21

Closed hammy275 closed 1 year ago

hammy275 commented 1 year ago

vrdata_world_pre will only be available client side, and allows for accessing VR data before the tick. No server-side support since, because of latency, having access to it server-side wouldn't help due to latency (you can't take advantage of when in the tick/on what tick it happens like on the client).

vrdata_world_render will only be available client side, and would be used to allow rendering things at an effective framerate higher than the "20 fps" that the tick-based ones provide.

Will be available to 1.18.x-multiloader and 1.19.x

To prevent having to break compatibility and making a 3.y.z we'll be exposing these as IVRPlayer instances. They can be obtained in IVRAPI using the following methods:

getVRPlayerPre: Get player data from before the running tick. getVRPlayerRender: Gets player data for rendering. Client-side only!

hammy275 commented 1 year ago

Should also add the respective room ones. Also client side.

hammy275 commented 1 year ago

Done as of 2.1.0