13-08-2020, 08:39 PM
(13-08-2020, 10:02 AM)josemendez Wrote: Hi,Here is camera with no tilt. Every click gets hook attached and rope gets attached to same object "depth", I mean not on the back side or front side of the object.
I'm unable to reproduce this. Also, I don't see how camera placement/orientation could affect the physics simulation, as it is not taken into account at all...except for camera culling, which disables the simulation entirely when it is offscreen. To force the simulation to run even when not visible, enable "simulate when invisible" in the solver. Should be enabled by default though:
http://obi.virtualmethodstudio.com/tutor...olver.html
If this is not the cause of your issue, can you share a video of it?
https://youtu.be/2harf1qQujU
and here is camera with tilt. I'm constantly clicking and only some of the clicks get hook attached and also the rope attach position changes from backside of the object to the front side of the object when mouse click position goes higher.
https://youtu.be/UAz45Tcqu-A
What comes to my mind is that is the camera clipping plane or some other camera plane somehow affecting theĀ calculations? See attachment: Red dots are mouse click positions. Green is world up axis. Two thin blue lines are ray casts. When mouse clicks go lower the hook attach point moves away and when clicks are higher the attach point moves towards camera until it does not attach at all because ray does not hit the object. When camera is not tilted all clicks are on the green line and all hooks attach.
I think I should mention that I'm using Cinemachine to adjust the camera angle.