Hi all,
I am producing a new game by using Game edition and its physics and I wish to know what type of object I should define for following situation:
- draggable object that will interact with a ball, let’s say baseball, so that baseball will be controlled by user.
- the other object is the ball, of course.
So, I define the ball as “dynamic” with friction=0.3, bounce=0.8 and radius=50
and my baseball as “static” because I don’t want any bounce or gravity effect on it. But, I’ve read that for draggable objects, it should be kinematic.
The point here is: if I wish user hits the ball with the baseball, and the baseball is controlled by the finger (i.e. touch/move event) how I must define this piece of code?
I just tried different approaches and I can’t achieve the desired result. For instance, what object I must apply force? What kind of collision detection I must use (i.e. began cycle or postSolve?
The general behaviors of my code are not as desired.
Do I need to apply force to the ball after detect x, y force of the movements of the baseball (like you do on the pool sample code) inside baseball touch event or I can relay on collision detection postSolve where the interaction of two dynamic objects is resolve on postSolve?
In resume, what I need is something (in this case baseball object) to interact and apply a force to a ball, based on user movement of the baseball. Can someone point me some idea, sample code, direction, orientation, anything…?
Kind regards,
Flavio.
[import]uid: 3022 topic_id: 1570 reply_id: 301570[/import]