playMaker

Author Topic: Block movement of an object from one position to another with a collider?  (Read 675 times)

Adam Z

  • Full Member
  • ***
  • Posts: 207
So I have the position of my VR controller. What Im trying to do is have a cube move towards the position of the controller, but if there's an object with a collider in the way block it. As an example; say I have a virtual table. If my controller goes through the table to beneath it the cube will stop at the top of the table, until my hand comes back above it or there is nothing stopping the movement between my controller and cube.

Both the cube and table has colliders on both. I've tried 'Move Towards" with little success. The colliders do not get taken into account.

Any thoughts would be helpful. Thanks!

Adam Z

  • Full Member
  • ***
  • Posts: 207
Anyone have any thoughts? Thanks!