We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey guys!!
I'm trying to drag a parent zone and keep the child zone statically, and I can't find any solution.
I will be very glad, if anybody can help me with this.
EcoPik@
The text was updated successfully, but these errors were encountered:
Um, the whole point of the parent/children thing is that the child inherits its parent's transformations. Anyways, I guess this is how you'd do it:
void touchParent( Zone zone){ PVector v1 = child.getOrigin(); parent.drag(); PVector v2 = child.getOrigin(); PVector difference = PVector.sub( v1, v2); child.translate( difference.x, difference.y); }
Sorry, something went wrong.
No branches or pull requests
Hey guys!!
I'm trying to drag a parent zone and keep the child zone statically, and I can't find any solution.
I will be very glad, if anybody can help me with this.
EcoPik@
The text was updated successfully, but these errors were encountered: