Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

99 users online



3ds and gravity

3ds and gravity

Currently viewing this thread: 1 (0 members and 1 guests)


Xolt

Xolt

Neverside Newbie
Status: Offline!

3ds and gravity

OK so I attempted spoono's tutorial on using PArray's and gravity and was very unsuccessful. Would anyone be able to give me a more simplified tutorial on applying gravity to multiple objects? I'm trying to make it look like a walkway collapsed and its taking forver to lay out each piece to make it look realistic.

thatpassivekid

thatpassivekid

stuff
Status: Offline!

have you tried using reactor? you can set each objects physics, make them react to eachother, and simulate almost anything

___________________

yeah i did it

Xolt

Xolt

Neverside Newbie
Status: Offline!

reactor... no i havent, probably because I dont know where it is or how to use it (effectivly)

truth

truth

Neversidian
Status: Offline!

Basically you increase the drop by a given number except for when it reaches the floor (i.e. equal to or less than ground zero should still equal ground zero...and then you do bouncing effects or something). For instance, if it has 53 pixels to fall and it begins falling, if your gravity is 5, it will fall like this:
5
10
15
20
25
30
35
and so on.

Which means that there would be...um...let's count to see when we get to 53
5+10=15 +15=30 +20=50 + 25=75
Hm, 75 is greater than 50, so, instead of adding 25 for the last frame, drop the object by 3 pixels.

Now, you see, you have:
5
10
15
20
3

That's 5 frames til it reaches bottom. Hope I helped...gravity is rather simple :-)

truth

truth

Neversidian
Status: Offline!

Okay, it seems I misinterpreted your question, so you may ignore that last post :-)
lol

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.007 seconds.