Hi yall,
Currently working on a VR blacksmithing game and I’m having trouble getting the forge/furnace to work how I want. Any advice yall can give would be much appreciated!
The Forge needs to be turned on before use by adding coal and then using the bellows. I know for the coal that using a on collision overlay will work fine for accepting it and adding a fuel value, but what would be the best way to trigger a player moved object like the bellows and only start the forge if both are done?
Theorycrafting because I don’t use VR but this is what I would do
On grab button / trigger you could do a Sphere overlap Components with the sphere position getting its location from the hand.
Do a for loop over the gathered components, filter out by component of type interactComponent.
Add a component on the bellows handle that is used to interact (inherit it from scene component and name it interactComponent and move it to the end of the handle).
Then capture the vertical motion of the hand and either use it to drive the bellows animation with a lerp on the animation position or access the bellows skeleton if it has it and rotate the joint of the bellows accordingly.
You would need to register the motion in time to build up heat and reset it if too slow.