Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 26 Sep 2010
Offline Last Active Jul 09 2014 05:07 AM

Topics I've Started

Spaceship rotation through opposing forces

05 July 2011 - 09:56 AM

Hello everyone,
I am making a space simulator game (with Bullet physics engine, although I assume it does not matter). The spaceships are represented as a set connected "parts" in form of cubes. Some of these cubes are motors, which move the spaceship through applying force to a rigid body in one of six directions (axes of Cartesian coordinate system). I am now trying to make a polished system of driving the spacecraft. I thought about it and I know that I need to code two separate types of movement:
  • translation without rotation (even with a non-symmetric spaceship) and
  • rotation without translation.
To sum things up – every spaceship is a rigid body that has known mass, center of mass (which can, but doesn't have to be (0,0,0)) and many motors. Each motor has its position, rotation and maximum force it can produce.

I have been trying to wrap my mind around this problem and/or google it, but I have failed. Maybe you can point me in the right direction?

Thanks a lot,