Rotate Line to mouse

Started by moschops, May 14, 2013, 15:07:07

Previous topic - Next topic

moschops

Hello everyone, I am in the process of building 3D carrom game, so far everything has gone pretty smoothly, I have designed the board models in blender and have them imported and currently using bullet physics to handle the collisions.

The issue I am having is the mouse input, I am trying to add a directional path so the player will know what direction the piece will move, the picture bellow sort of shows how it currently looks.



What I am trying to achieve is to use the mouse's Y axis to rotate the line around the piece and the mouse's X axis to increase the length of the line.

Any help in the best way to achieve this would we awesome, Many Thanks.

Fool Running

Can you not just get the mouse movement changes and add/subtract the values from your rotation and length?
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D