How to use query to detect collision?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
i7strelok
Gnoblar
Posts: 14
Joined: Tue Jan 24, 2017 10:31 am

How to use query to detect collision?

Post by i7strelok »

How to detect collision between two nodes with query?. Please help me.
When two node collide, I need delete nodes.

I do not speak good in english, but I wait you understand.
Thanks.
TombFan1996
Kobold
Posts: 29
Joined: Tue Apr 19, 2016 2:51 pm
x 1

Re: How to use query to detect collision?

Post by TombFan1996 »

Hi,

From what I understand you want a way to detect collisions between two nodes, your best bet is to use a physics library, check this link to see which one takes your fancy http://www.ogre3d.org/forums/viewtopic.php?f=8&t=63839

If you don't want to use a physics library and you purely just want to see when two nodes intersect one another, you could detect collisions between each node via the nodes Aabb. http://www.miguelcasillas.com/?p=30

Hope this is what you were asking for :)
frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 65

Re: How to use query to detect collision?

Post by frostbyte »

if physics library is an overkill you can use this https://bitbucket.org/ogreaddons/new-mi ... -collision
for more info search the forums for MOC/new MOC( minimal ogre collosion )
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..

coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos
i7strelok
Gnoblar
Posts: 14
Joined: Tue Jan 24, 2017 10:31 am

Re: How to use query to detect collision?

Post by i7strelok »

The first I try with library psycics, but is very dificult, so them I used AABB from Ogre.
I can detection colission :D :D thank for your answers :).
I have a new problem hehe, I need when A collision occurs, an animation is played Here the animation: http://www.blendswap.com/blends/view/66731
I when export (.mesh), I get 4 files "Cube.mesh", "Cube.mesh.xml", "explosion.scene" and "Material.material" How to I use its files?
TombFan1996
Kobold
Posts: 29
Joined: Tue Apr 19, 2016 2:51 pm
x 1

Re: How to use query to detect collision?

Post by TombFan1996 »

I may be wrong about this but it looks like that isn't strictly an animation in blender, I downloaded and had a look and it looks to be using blender's particle system (which isn't directly translatable to Ogre's particle system).

I'm not entirely sure what version of Ogre you're using, but there are some great particle systems available for Ogre where you can recreate the same effect you linked, here's a good place to start http://www.ogre3d.org/tikiwiki/tiki-ind ... =-particle.
i7strelok
Gnoblar
Posts: 14
Joined: Tue Jan 24, 2017 10:31 am

Re: How to use query to detect collision?

Post by i7strelok »

I have used particles to give an appearance of the Universe stars to my game, but you are recommending me to use particles to simulate an explosion ?.
I never imagined it could be used for that.
I understand how to create the configuration file of the particles but how can I make them appear in the place of the explosion and only run once? could you help me?
Post Reply