Constrain to mouse and keep collision but also offset touch?
![cox0685](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hello
I am trying to control an actor with touch. I encountered what seems to be a common problem of the constrain rules overriding the collision rules which resulted in my actor passing through obstacles.
I used T-shirt Booths helper to get over the problem by constraining the velocity rather than the position.
The problem I face now is that I want to offset the control of the actor so that my actor isn't covered by your finger when you move it around the screen.
What I ideally want is to be able to move my actor parallel to touch anywhere on the screen but keep the distance fixed.
If anyone can help then that would be legendary!!! Really stuck on this one.
(heres Tshirt Booths solution which i need adding to http://gshelper.com/constrain-to-mouse-and-keep-collision-gamesalad/)
Cheers
Cox0685
I am trying to control an actor with touch. I encountered what seems to be a common problem of the constrain rules overriding the collision rules which resulted in my actor passing through obstacles.
I used T-shirt Booths helper to get over the problem by constraining the velocity rather than the position.
The problem I face now is that I want to offset the control of the actor so that my actor isn't covered by your finger when you move it around the screen.
What I ideally want is to be able to move my actor parallel to touch anywhere on the screen but keep the distance fixed.
If anyone can help then that would be legendary!!! Really stuck on this one.
(heres Tshirt Booths solution which i need adding to http://gshelper.com/constrain-to-mouse-and-keep-collision-gamesalad/)
Cheers
Cox0685
Comments
Darren.