• home
  • about
  • contact
  • author's blog
  • art
  • invention

  • journal

  • philosophy

  • stories

author's blog (squirrel tao)

All Posts Tagged As havok

blog entries RSS subscribe to the RSS feed for all blog entries

Creating a Simple Hinge in Shockwave 3D Using the Havok Xtra

April 11, 2007

Categories: 3D Programming, Shockwave 3D  Tags: havok, hinge, lineardashpot
Written by Jennifer Elrod @ 12:25 pm

Today I finally figured out how to create a simple hinge in Shockwave 3D using the Havok Xtra’s linear dashpot. In the past, I was frustrated by Havok’s linear dashpot, because by default it connects two movable rigid bodies’ centers of mass. I wanted to be able to connect them more precisely, such as by their corners. I found that it is simple to accomplish this by assigning pointA and pointB of a linear dashpot to the desired vertice. First I attached two cubes using two linear dashpots. Then I set point A of the first linear dashpot to be positioned at the desired corner on the first cube and point B at the desired corner on the second cube. I did the same with the second linear dashpot. My demo source code is nothing but a toy app, but it’s enough to get the concept. Once you get the concept, you can adapt it for your own project. Be warned that when you increase the size of the boxes, the results become unpredictable. To adapt this to your own code, you may need to experiment with the vertex lists of the faces of your own model. Download source.

permanent linkpermanent link to this article

no comment

Search This Site

binoculars

navigation

  • Home - Author's Blog
  • Archive - Author's Blog
  • Downloads
  • Links

category listing

  • Art (RSS)
    • Computer Graphics (RSS)
  • Books (RSS)
  • Comics (RSS)
    • Web Comics (RSS)
  • Creativity (RSS)
  • Director (RSS)
  • Fiction Research (RSS)
    • Science Fiction Research (RSS)
  • Flash (RSS)
  • Games (RSS)
    • MMORPGs (RSS)
  • Humor (RSS)
  • Hypermedia Poetry (RSS)
  • Hypermedia Storytelling (RSS)
  • Interactive Storytelling (RSS)
  • Interviews (RSS)
  • Literature (RSS)
  • Movies (RSS)
  • Music (RSS)
  • Myth of Merula (RSS)
  • New Media Theory (RSS)
  • Open Source (RSS)
  • Personal (RSS)
  • Philosophy Wiki (RSS)
  • Programming (RSS)
    • 3D Programming (RSS)
    • Game Programming (RSS)
  • Publishing (RSS)
  • Reviews (RSS)
  • Shockwave 3D (RSS)
  • Virtual Worlds (RSS)
  • Web Design (RSS)
  • Wikis (RSS)
  • Writing (RSS)
    • Hypermedia Writing (RSS)

copyright ©2010 Jennifer Elrod

home | about | contact | author's blog

art | invention | journal | philosophy | stories

RSS (Squirrel Tao blog entries) RSS RSS (Myth of Merula blog entries) RSS