- Home /
Issue with Custom Paddle Drawings
Hey all,
I am trying to make a custom paddle that a ball will bounce off of. The catch is that the user will draw the paddle themselves by touching the screen and dragging for size. I have this mostly working except that when I do this the prefab's X or Y scale is increased and the point where the user touched first becomes the center of the paddle instead of the edge.
Example:
X = Where i Touch& Release
X------X - This is what i want
---X--- X - This is what i get.
Is there anyway to calculate the offset each time ?
Thanks!
Answer by Teare · Apr 23, 2011 at 08:16 PM
Try sticking the actual paddle inside of an empty GameObject and resizing the paddle on creation by grabbing it as a child of the GameObject.
Your answer
Follow this Question
Related Questions
Multiple Raycasts 3 Answers
Texture offset issue. 1 Answer
Static class member for offset 1 Answer
Adding an offset to an instantiated objects rotation 0 Answers