Jump to content
  • Advertisement
Sign in to follow this  
Khaos Dragon

really basic question about Tokamak Physics SDK

This topic is 5398 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am having a hard time finding an awnser to this, but I really need to know this, and this may be why I am getting very very slight collision detection errors on my physics objects (with some things looking right, and others slightly clipping into each other). So far I have assummed that the position of the physics object box ( the one you set via the SDK ) is the lower left vertex of the box, and that the other 7 vertices are defined by the position + some combination of the length, width, and height. However, I realize that the other possibility is that the position represents the center of the box, if so that probably explains the slight error in my physics..

Share this post


Link to post
Share on other sites
Advertisement
I don't know the details of Tokamak; however, it may be that position is expected to be at the center-of-mass of the object, which is not the lower-left corner. This could be what's happening.

Share this post


Link to post
Share on other sites
I can confirm that the position is the center of the box.
So if you position the box at 0,0,0 and set it's width,height and depth to 1.0 the box extends from -0.5,-0.5,-0.5 to 0.5,0.5,0.5

Share this post


Link to post
Share on other sites
Also check to make sure you are using a small time step. If your time step is too big, you may miss some of your collisions.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!