Steam VR Template

Ok finally got a chance to test the coding I did today, I am successfully getting OnHit events while holding items now. It needs some clean up still but the results are promising. I made a subclass of the motion controller that hijacks the oncomponenttick where it gets the new controller position and performs sweep tests on the root components of all actors that are attached to the controller or a child component to the controller when the motion controller moves.

Now for the issue, what to do when it does collide? Currently it will be generating a hit event for every frame it is contacting the object. How it works normally is that it will back the object out of intersecting and leave it there as its new position, I would have to decouple from the motion controller at that point to do that.

I would like some input before I choose something, I could even leave it as is and you could have it spawn a physics handle when colliding with an object so it offsets correctly and then re-attach itself when the collision ends.

Overlapping works as you would expect without any modifications, in fact if you use begin overlap and end overlap as your collision indicators then you don’t need the OnHit at all.

A test having them simulate / un simulate with every hit event. Obviously it is buggy since it is firing them every frame at the moment and it will do both multiple times for each swing.
https://.com/watch?v=YjjxU7XWCYA