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.

Newcomers DBPro Corner / need a good limb tutorial (DBP)

Author
Message
viscera eyes
20
Years of Service
User Offline
Joined: 29th Apr 2004
Location: the moon
Posted: 22nd Jun 2006 03:33
ok so i need some help with limbs.

ive tried looking through the forums and havent found any actual tutorials on how to implement limbs in your program.

so could someone give me some code to practice with (it would really help if you could also explain how the code works)

ALIVE IN THE SUPERUNKNOWN!
viscera eyes
20
Years of Service
User Offline
Joined: 29th Apr 2004
Location: the moon
Posted: 22nd Jun 2006 04:49
dont want to double post so i have another question relating to acceleration

i think i have the right code (i found it in another post and edited it a little)

anyway the camera is programmed to point at the object so i can keep track of where the object is. however, when i press the key to trigger the objects movement the camera moves as though the object was moving but the object doesnt move (the camera rotates of into space)

heres the code


ALIVE IN THE SUPERUNKNOWN!
Moe
18
Years of Service
User Offline
Joined: 1st Apr 2006
Location: Sunny California
Posted: 22nd Jun 2006 06:05
for limbs- looka round in the menu and understand how the commands work.
For the sphere. The camera is still pointing to the place the object should be, but you never positioned the object where the camera is pointing. Add a position object command in the loop and there u go

parrot
viscera eyes
20
Years of Service
User Offline
Joined: 29th Apr 2004
Location: the moon
Posted: 22nd Jun 2006 07:44
ok i fixed the sphere problem...and yeah ill try to see what i can find in the menu...

the only problem is, thats what i have been doing so i dont think i will get very far.

ALIVE IN THE SUPERUNKNOWN!
Dream And Death
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: The circus! Juggling job, kids and DBPro
Posted: 22nd Jun 2006 13:16
By the way, you are increasing the acceleration with time - this is a bit unusual, normally things work under constant acceleration e.g. gravity or thrust of an engine.
viscera eyes
20
Years of Service
User Offline
Joined: 29th Apr 2004
Location: the moon
Posted: 23rd Jun 2006 00:15
its unrealistic i know but ill work on it later. the only thing im really trying to do right now is make the object start out slow and move faster with time and thats what the code does so im happy

ALIVE IN THE SUPERUNKNOWN!
Dream And Death
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: The circus! Juggling job, kids and DBPro
Posted: 23rd Jun 2006 14:36 Edited at: 23rd Jun 2006 14:36
Which is what will happen if you keep the acceleration the same.

In gravity (in the real world) things fall with an acceleration of -9.81m/s2. (- for downwards)

This increases the speed by 9.81 m/s every second - things start out slow and get quicker. Gravity doesn't keep increasing. i think this is a common mistake and is why sometimes computer physics objects fall just a little 'wrong'.

Hope this helps!
viscera eyes
20
Years of Service
User Offline
Joined: 29th Apr 2004
Location: the moon
Posted: 24th Jun 2006 01:57
yeah i know lol

i just had physics last quarter in school and my teacher really made sure we understood the concepts of motion.

like i said its unrealistic at the moment but ill work to fix that later

ALIVE IN THE SUPERUNKNOWN!
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 24th Jun 2006 05:50
If you did a search you'd find everything you need.

Login to post a reply

Server time is: 2024-11-26 17:45:43
Your offset time is: 2024-11-26 17:45:43