- Home /
iTween colliders
I was hoping someone could help figure out how to have to objects share a collider. No doubt I am wrong here but I am new.
My problem is I have two objects a plane and a box.
The plane moves up from the screen (iTween.MoveTo) when the mouse is over (OnMouseEnter), and the box is a child of the plane so it moves with it.
But I have a problem when I move the mouse over the box, the plane wants to recede(OnMouseExit) while box tries to expand(iTween.ScaleTo).
I am using really simple iTween script for the two objects, but cant seem to get the plane to stay in focus when I hover over the box.
Im trying to make a GUI type interface: When you slide the mouse pointer to side of the screen a table pops out whith objects on it that expand when the mouse is over them.
Any help would be awesome!
Answer by pixelplacement · Oct 20, 2010 at 06:15 PM
When you say "stay in focus" do you mean how to keep a consistent hit-area for the "button" of the geometry since its moving?
Hi Pixelplacement, I actually have a hit-area problem after tweening. The mouse input seems to be offset from it's texture. Is there a way to fix this? Thanks
Your answer
Follow this Question
Related Questions
Trigger GUI working wrong 1 Answer
Is Mesh Collider Optimal for GUI? 2 Answers
Restricting a key press to when youre in a trigger? 2 Answers
Adding 1 point after collison 1 Answer
How can I use iTween library to fade in a GUI.Label? 1 Answer