Collision detection using qt quick
-
Hi friends..,I want to knoe whether collision detection is possible in qt quick .
a simple ex:
I want to move 1 ball by hiting it with another ball.Thanks
imrrk -
Ther r some new physics lab packages which could be used for thes kinda collision or else javaScript has some kinda Rectangl collision detection API.
-
Math.sqrt((ball1.x-ball2.x)(ball1.x-ball2.x)+(ball1.y-ball2.y)(ball1.y-ball2.y))<epsilon
Pythagoras will help you)
-
A little searching on would have helped. It is already discussed "here":http://developer.qt.nokia.com/forums/viewthread/1695.
-
hi krishkn where i will get this pysics lab packages
-
Did you study the QML arcade tennis example?
-
[quote author="Andre" date="1294136161"]Did you study the QML arcade tennis example?[/quote]
Referring to the" TV Tennis ":http://doc.qt.nokia.com/4.7-snapshot/declarative-toys-tvtennis.htmlexample.
-
This would be the working link: "http://doc.qt.nokia.com/latest/declarative-toys-tvtennis.html":http://doc.qt.nokia.com/latest/declarative-toys-tvtennis.html
-
u need to download those from the codebase and compile urself say something like 2DBox.... but its simple to right logic WRT to collision detection for two rectangles....as i mentioned in this link
http://developer.qt.nokia.com/forums/viewthread/3001/
:)
-
hi you can use qt quick with box2d. I never tried but I found it by accident a few days ago:
http://www.youtube.com/watch?v=5e3-XZFYMnkplugin: http://gitorious.org/qml-box2d