Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / How to add weight to the bottom of an object so it doesn't flip? (GDK + Physics)

Author
Message
CocaCola
9
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 16th Oct 2010 22:25 Edited at: 16th Oct 2010 22:27
I pretty much need a command (I know there is one but I forget it) to add weight to a position of the object (bottom) so it a cube when your adding force to it won't flip.
Also how do I get the objects width, height, and in and out (Z axis, can't remember name)

I want coke, not Pepsi!
Matty H
10
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 16th Oct 2010 22:47
Have you tried this command:


CocaCola
9
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 17th Oct 2010 00:47
Uh not really, here you can test out this code and see that because of that I can't use forces.

Arrow keys to move, spacebar to jump.

I want coke, not Pepsi!
CocaCola
9
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 17th Oct 2010 00:47 Edited at: 18th Oct 2010 02:31
I still need help

I want coke, not Pepsi!
HowDo
16
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 18th Oct 2010 11:41


this might be the one.

here are a few more.



Dark Physics makes any hot drink go cold.
CocaCola
9
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 18th Oct 2010 20:59
I will try them later but idk if they will work.

Always program as if the person maintaining your program is a psychopath that knows where you live
Clonkex
Forum Vice President
9
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 20th Oct 2010 08:46
I didn't read your code, but unless you're using the Character Controller, it's best that you never use a physics object as a player object (unless it's specially designed for that, such as a ball game. They just roll over and have friction issues, etc. etc.)

Clonkex

Making games is easy.....finishing them is a different matter.

Intel Core 2 Duo 2.8Ghz, Nvidia GeForce 9400 GT 512mb, 1gb ram.
CocaCola
9
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 22nd Oct 2010 02:29
Its a ball game, forces are best, and I had it in DBpro that a cube would stay upward.

Always program as if the person maintaining your program is a psychopath that knows where you live
Clonkex
Forum Vice President
9
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 22nd Oct 2010 08:18
So.....do you want you cube to stay upright and the ball to roll?

If so (and if you only use a flat, level surface), try lowering the friction with materials. Don't ask me how to do that, cause I haven't used materials before.

Clonkex

Making games is easy.....finishing them is a different matter.

Intel Core 2 Duo 2.8Ghz, Nvidia GeForce 9400 GT 512mb, 1gb ram.

Login to post a reply

Server time is: 2019-06-25 03:04:00
Your offset time is: 2019-06-25 03:04:00