Automated flying object

Post Reply
guiramos
Posts: 11
Joined: Fri Dec 18, 2009 7:19 pm

Automated flying object

Post by guiramos » Wed Feb 22, 2012 6:09 pm

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.

kloplop321
Posts: 55
Joined: Sun Jan 01, 2012 7:37 pm

Re: Automated flying object

Post by kloplop321 » Wed Feb 22, 2012 7:21 pm

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..?

guiramos
Posts: 11
Joined: Fri Dec 18, 2009 7:19 pm

Re: Automated flying object

Post by guiramos » Wed Feb 22, 2012 7:59 pm

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.

kloplop321
Posts: 55
Joined: Sun Jan 01, 2012 7:37 pm

Re: Automated flying object

Post by kloplop321 » Thu Feb 23, 2012 1:14 am

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.

User avatar
majestik666
Posts: 66
Joined: Tue Mar 02, 2010 6:13 am

Re: Automated flying object

Post by majestik666 » Thu Mar 01, 2012 6:45 am

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.

Post Reply