Jump to content

View more

Image of the Day

The beast has a mighty searchlight of evil! #screenshotsaturday https://t.co/bzKepOojDL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

How Physics Engine Works?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 Medo3337   Members   

891
Like
0Likes
Like

Posted 05 July 2012 - 08:00 AM

I am creating a Game Engine, trying to use Havok physics, I am not quit sure about how I should deal with the Physics Engine.

What I know is that I have a world, hkpWorld, and I have RigidBody, what I should do is that I add RigidBodies to hkpWorld for physics stimulation, however, If I have a tank mesh (made in 3Ds Max) and this mesh is using 2 boundary boxes, one on the tank body, another on the tank cannon, should I add each boundary box as RigidBody?

How RigidBody will be stored like? will it store the whole tank mesh or just the boundary boxes?

Edited by Medo3337, 05 July 2012 - 08:00 AM.


#2 Hodgman   Moderators   

50658
Like
0Likes
Like

Posted 05 July 2012 - 08:16 AM

This has nothing to do with DirectX... moving your thread.

#3 Numsgil   Members   

501
Like
0Likes
Like

Posted 05 July 2012 - 02:49 PM

Try posting on the Havok forum. They're usually pretty good about answering questions about use cases and such.

http://software.intel.com/en-us/forums/havok/
Darwinbots - Artificial life simulation

#4 Hodgman   Moderators   

50658
Like
0Likes
Like

Posted 05 July 2012 - 08:54 PM

A rigid body is "rigid", in that it's one solid block that can't be bent or broken -- once you attach shapes to it, those shapes are always in the same position relative to each other.

If the tank cannon can't rotate, then both "box" shapes can be attached to the same rigid body.
If the tank cannon can rotate, then it should be a separate rigid body (attached to the main rigid body by some kind of joint/constraint).




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.