Collision for animate object

View previous topic View next topic Go down

Collision for animate object

Post  soniccat on Tue Jul 21, 2009 10:50 pm

How i can make collision check for animate object ( skeletal mesh )? Without one primitive bound for all mesh.

soniccat

Posts : 10
Join date : 2009-07-15

View user profile

Back to top Go down

Re: Collision for animate object

Post  sio2interactive on Tue Jul 21, 2009 11:33 pm

Can you be more precise on what exactly you would like to do!?

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Collision for animate object

Post  soniccat on Tue Jul 21, 2009 11:53 pm

I make football like game. I illustrate my problem below:
I want simulate really physic when ball intersect my skeletal mesh.


soniccat

Posts : 10
Join date : 2009-07-15

View user profile

Back to top Go down

Re: Collision for animate object

Post  sio2interactive on Wed Jul 22, 2009 12:54 am

Got it... is this your first game? If yes you might wanna aim for something less ambitious... Cuz this kind of real life physic simulation is pretty hard to achieve. And usually for sports game, you'd better go with your own engine to do it cuz its kind of really specific, or you can build your own player engine around an existing one.

In any case, you have ALOT of work to do even if you are using using SIO2 Wink

Best of luck!

Cheers,

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Collision for animate object

Post  zzajin on Wed Jul 22, 2009 9:57 am

You might want to search the bullet forums for how people are dealing with modified rigid bodies.

For instance
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2050&hilit=modify+rigid+body

zzajin

Posts : 81
Join date : 2008-10-14

View user profile

Back to top Go down

Re: Collision for animate object

Post  soniccat on Thu Jul 23, 2009 1:51 am

In any case, you have ALOT of work to do even if you are using using SIO2

Now i divide my model on bounding rectangle. Rectangle is dynamic body in blender . I update it position every render with _btRigidBody->setWorldTransform.

In blender i make ipo animation for rectangles, that animation correspond with my mesh animation. And then i multiply my physical transform matrix with ipo transform matrix. Now that rectangles move synchronously with my simple mesh.

But collision in Bullet not work with directly change position ( that obvious ). And i will use that function for collision check:
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=3419&p=14331&hilit=check+collision#p14331



You might want to search the bullet forums for how people are dealing with modified rigid bodies.

I found http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1832&p=6973&hilit=skeletal#p6973. But he say that my question not simple too Smile

soniccat

Posts : 10
Join date : 2009-07-15

View user profile

Back to top Go down

Re: Collision for animate object

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum