I wasn’t sure where to post this, but since it’s not actual code question I decided against posting in graphics section.
I want to be able to create a dynamic display object (straight line for example) that when it is hit by another object (ball for example) it deforms as a trampoline would and bounces the ball back.
Key difficulties I want to address are:
-
the line/trampoline can be at an angle to the hitting object and it needs to stretch accordingly
-
depending on the width of this line/trampoline the bounce effect is affected, larger area, smaller bounce, smaller area higher bounce
I’ve scoured the google search as well as the forums and thus far I did not find anything that is directly useful.
What I see as a possibility is drawing the straight line using the newLine method, but then somehow converting it to joints instead? and possibly wrapping it into a class or a group/object with properties if I want to dress it up with some effects?
any feedback or pointers to resources/code would be greatly appreciated. I really want to bang out a prototype within a week or so, but before I can do that I need to know if what I’m trying to accomplish is doable using corona.
Cheers!