Gravity
by JD Scogin · in Torque 3D Beginner · 08/18/2013 (5:40 am) · 6 replies
Seems like once I get one thing figured out, something else pops up.
So what I need to know now is, is it possible to implement Gravity on a Static Shape?
I am now able to turn on and off animations on characters. Now I need to have the characters move and on the ground without going through or rising above. Is this possible?
Thanks again.
Jd
So what I need to know now is, is it possible to implement Gravity on a Static Shape?
I am now able to turn on and off animations on characters. Now I need to have the characters move and on the ground without going through or rising above. Is this possible?
Thanks again.
Jd
#2
08/18/2013 (8:46 am)
I'd suggest looking at the debris class.
#3
08/18/2013 (11:16 am)
Thanks, I will take a look at those.
#4
08/18/2013 (5:27 pm)
Item is what I'd recommend if you're starting to look at simple physics. It's basically a simplified Player class that does gravity.
#5
08/18/2013 (5:42 pm)
Interesting. That sounds promising. I have a lot of items. I must have not turned on physics. Have to check that out. I did read that somewhere and made my character and item, but it did not have gravity. Must have left something unchecked. Thanks
#6
08/18/2013 (5:45 pm)
Yeah, that did it! Unchecked Static and he fell to the ground! Amazing. You are the best! Thanks Jd
Torque Owner Richard Ranft
Roostertail Games
However, if you've made them with StaticShape you could still derive a child class and tweak it to suit. I'd suggest starting with the Player class and looking at how it handles gravity - probably simpler than RigidShape.