Shared-Reality-Lab / IMAGE-HAPI

This repository contains both the java and JS/TS versions of the HAPI (Haply's API)
0 stars 0 forks source link

Port a simple example without physics library #18

Closed sriGanna closed 3 years ago

sriGanna commented 3 years ago

Now that we have proper communication with the 2DIY we now port over one of the sample applications(eg. the HelloBall or HelloWall example) from Haply to see if we encounter any bugs or other problems.

rayanisran commented 3 years ago

helloBall has now been ported; the visuals and haptic effects seem to be all good, but the code to retrieve the variables from the worker to the main sketch to use in update_animation() is a bit messy - all of the required variables need to be passed - surely JavaScript / p5.js has a more elegant way to use variables from another file but we need to look into that.

I think it's also safe to assume helloWall should work without any issues since it's a slightly more simplified version of helloBall, but I'm leaving this issue open for a while just in case we find some bug.

sriGanna commented 3 years ago

closing this since we haven't found any super pressing problems