Can any one help me with some vector math? I'm trying to archive mouse detection, like on this video:
Door Test #1

Here some pictures (in video you can see that it works from any camera angle/positions):
Quote:



In order to move the door, I'm planing to use ROPE hinge, I need start and end positions for it. Start is going to be the hit position of the trace (interacton trace/mouse trace?), but how do I calculate that mouse position in the world? Tried mouse_pos3d, but I couldn't get it to work correctly.

Greets!

Edit: to make things clear... I do have working example with c_trace, mouse_pos3d and mouse_dir3d, but it's not what I wanted to archive.. What I need is exactly the same thing as on the video (I'm not sure, but probably they did not use any rays/traces), I just can't think of it, how to get position of the mouse in 3d world like that?

Last edited by 3run; 11/01/16 14:56.

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung