Hi I need to create a wind turbine that when an object passes in front of it, a force is applied to the object. I tried to create the physical body of the turbine larger than the image thus creating an invisible area. When the object passes this invisible area will be a force applied to the object, this force is based on the distance of the object relative to turbine. The problem is that I am using collision detection, causes the object is not detected when it is inside the invisible area. Does anyone know any other solution? [import]uid: 98894 topic_id: 31167 reply_id: 331167[/import]
Did you set the invisible area to isSensor = true and isHitTestable = true ? [import]uid: 52491 topic_id: 31167 reply_id: 124662[/import]
This might help -
http://developer.coronalabs.com/code/golem-gravity
One of the options is to set a part of the screen as active and any objects going into that part of the screen are effected by physics.
Dave [import]uid: 117617 topic_id: 31167 reply_id: 124668[/import]
Oh man, I spent a day last week building my own custom gravity code to convert one of my games from single player to split-screen multi-player - I wish I’d found this library first!! [import]uid: 93133 topic_id: 31167 reply_id: 124677[/import]
Did you set the invisible area to isSensor = true and isHitTestable = true ? [import]uid: 52491 topic_id: 31167 reply_id: 124662[/import]
This might help -
http://developer.coronalabs.com/code/golem-gravity
One of the options is to set a part of the screen as active and any objects going into that part of the screen are effected by physics.
Dave [import]uid: 117617 topic_id: 31167 reply_id: 124668[/import]
Oh man, I spent a day last week building my own custom gravity code to convert one of my games from single player to split-screen multi-player - I wish I’d found this library first!! [import]uid: 93133 topic_id: 31167 reply_id: 124677[/import]