Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Mark Slater

Member Since 19 Aug 2010
Offline Last Active Nov 03 2012 08:06 AM

Topics I've Started

Force/Torque & Vector Fields

13 October 2012 - 04:43 AM

Hey,

For my current game I developed a scripting language to describe vector/scalar fields (similar to the approach on bitsquid). It's working well for simple particle systems, but I'd now like to use it for our main game physics as well. The problem is, how can I generate the torque for a body given a field? A simple, brute force approach would be to sample the field at multiple points of the meshes surface and generate a force/torque. However, this would be:
  • Inaccurate
  • Too computationally expensive to run on multiple game objects (based on profiling of the particle system and the number of objects in our scenes).
Any suggestions? We already use Helmholtz Decomposition to split our fields into div/curl free parts, which simplifies matters. I'm sure my old electrodynamics books could help, but I can't find them just now.

PARTNERS