Jump to content

shot in the direction of my mouse


photo

Recommended Posts

 

 
Hi
I need a
shot in the direction of my mouse
This program performs the following

 

I used to get the cursor GetDir() function Angle
I get the following command to launch help
dir00 = vec3 (cos (Angle_x * Deg2Rad), sin (Angle_x * Deg2Rad), sin (Angle_y * Deg2Rad));


The center screen   works
 but the problem is there are four
After firing, the cursor goes away.
Please help me here.
Thanks

Moshak.rar

Link to comment

As I get get it, you use a multi-monitor configuration. But how it is launched exactly? And what do you mean by "After firing, the cursor goes away"?

Link to comment

Mohsen,

 

To help us reproduce and fix the issue, please describe it in details:

  • What you expected or needed to happen
  • What you did step-by-step (please, use a numbered list!)
  • What happened
Link to comment

Thanks for your answer
I have a project that I'll understand if you can run.
My goal is that when an object (ball) was created directly by double-clicking the mouse to move the cursor
And does not distance the mouse cursor in the center of the right answers
But the four sides of the screen do not give correct output
When adding cameras(call addcamera in updatefunction ) to solve the problem to some extent, but there is still a problem

Link to comment
  • 2 weeks later...

Mohsen,

 

Sorry for late response.

What do you mean by 

And does not distance the mouse cursor in the center of the right answers
But the four sides of the screen do not give correct output

 

As I get get it, your issue is about stretching the ball near the screen edges?

 

Please, explain your issue in detail. 

 

Link to comment
×
×
  • Create New...