Move Object Depending On Camera Angle

See if this delivers:

  • you can have a plane to intersect with, its origin is where the pedestal is and the normal is camera dependent

  • we then trace from the camera towards the cursor projected into the world, eventually hitting that plane (it’s of infinite size, well almost)

  • this allows you to place something at that intersection:

Script (should, ideally, be in the Player Controller):

Notes:

  • do not use Set Actor Location for this - look into PhysicsHandle Component
  • the physics will not act right out of the box, on the contrary - it’ll be the very opposite of Zen
    – increase tensor scale, angular dampening and play with mass
    – crank up position & velocity solvers, maybe even enable CCD
    – look into physical materials, especially restitution
    – depenetration is another element - it controls how rapidly objects get ejected when their geometries intersect. Start around 100 and see how it behaves, adjust.

Tweaking will be required.


There might be a reasonable alternative to this using constraints.