Jump to content
Search Community

ppdemo

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by ppdemo

  1. ppdemo

    Draggable hit wall

    Hi everyone, I'm newbie. Just want to know. how to restrict the direction of draggable while hit an another object. in the codepen example, I have a Green box is draggable. when we hit the Black box. i needs to act like wall. Thanks
  2. Hi @GreenSock as your instruction. I created the corner points and its working well. also i'm getting the hit position when the redbox hit bluebox. but i don't know how to stop the draggable which is act like bounds. can you please help me to fix... https://codepen.io/demo-ppad/pen/wvYeRwV
  3. how to get the exact position (x,y) of Red and Blue box corner. So I can find the point hit between two points. I tried getBoundingClientRect(). not working because of angle . can you please tell how to get the position (x,y) for each corners.
  4. Hi everyone! Sorry, if the answer is already there, but I couldn't find it. In the codepen example. I have two rectangle box. Red color box have angle 45deg and draggable with bounds. Blue color box has 0 deg. if i tried to drag the Red box i.e, Blue box corner "a" hit in between Red box "e" & "h" corner points. it's want to act as boundary. same for other corners. can you please help me to solve this... Thank you!
×
×
  • Create New...