Page 1 of 1

Automated flying object

Posted: Wed Feb 22, 2012 6:09 pm
by guiramos
Hey guys...
Back to action...

I am studying forces because I need to create a automated flying object like a quadricopter for example.
He needs to receive an external force and react correctly to then.

So let's begin with a easy context.

With a given cube with a 1Kg of weight how can I implement a force to make him actualy fly.

Gravity must be applied like usual.

Re: Automated flying object

Posted: Wed Feb 22, 2012 7:21 pm
by kloplop321
First you have to negate the forces which gravity apply, and then apply forces in whichever direction you wish.

Why did you post this in two places..?

Re: Automated flying object

Posted: Wed Feb 22, 2012 7:59 pm
by guiramos
But how do I "negate gravity" and "apply forces whichever directions I wish?

By literally modifying current object's position?
Is it the right way? I guess by doing that I might override the bullet engine positions and rotating procedure algorithm.

Is there a way to "apply the force" so, bullet can eventually move and/or rotate the object?


I posted in two place because I still dont know if the current java port contains the support to apply the forces or I will have to write my own.
I am sorry if I cause trouble.

Thank you.

Re: Automated flying object

Posted: Thu Feb 23, 2012 1:14 am
by kloplop321
Negating gravity is simply nullifying its effects, which arithmetically would be adding the opposite vector of the force of gravity applied to the object.

If you haven't taken a physics class, please do so..

Also, please start reading the usage documentation. There's seriously a function named almost verbatim to Apply Force.

Re: Automated flying object

Posted: Thu Mar 01, 2012 6:45 am
by majestik666
For fun someone actually wrote a quadcopter running within maya
using bullet.
We used 4 maya fields parenters to where the "motors" would be
which basically apply a variable up force to the object.

If you want to make it outside of maya, you can just build a small
rig with a 4 calls to applyForceAtPoint() with an up force.