Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsJedi Knight and Mysteries of the Sith Editing Forum → Object Not Affected By Gravity?
Object Not Affected By Gravity?
2005-06-09, 10:55 AM #1
I have made a custom crate for my level, very simple model (it's a cube :p ) and I would like it to travel the conveyor belt system in my level. I need it to respond to gravity, however, which it is not doing. Despite, me setting the flags which I thought would work in the template. Here's my template:

Code:
# DESC: a wooden crate in honor of mada
# BBOX: -.15 -.15 -.15 .15 .15 .15
madacrate         _throwable         size=.259808 movesize=.259808 physflags=0x1 collide=1 move=physics model3d=madacrate.3do


What do I need to change? I want the crate to be affected by gravity, but I also want the player to be able to stand on it (I don't really want it to be throwable either, despite my parent template). This shouldn't be too hard. :)
My JK Level Design | 2005 JK Hub Level Pack (Plexus) | Massassi Levels
2005-06-10, 2:15 PM #2
I got the template working a bit better, but I'd still appreciate some help - anyone familiar with physics in JK?

Thanks.
My JK Level Design | 2005 JK Hub Level Pack (Plexus) | Massassi Levels
2005-06-10, 4:22 PM #3
Answer, basing on throwable is why.

madacrate none orient=(0/0/0) vel=(0/0/0) type=cog size=.259808 movesize=.259808 thingflags=0x800048 collide=3 move=physics physflags=0x4033 surfdrag=1.0 airdrag=.5 mass=64 model3d=madacrate.3do


Order matters, type matters, blah, blah... Collide=3 if you want player to walk on it. Try that one, might work out better.
_ _ _____________ _ _
Wolf Moon
Cast Your Spell On Me
Beware
The Woods At Night
The Wolf Has Come
2005-06-10, 4:35 PM #4
Here's a good working template :)
Code:
# DESC: pushable, standable crate
# BBOX: -.1 -.1 -.1 .1 .1 .1
pushbox           _walkstruct        model3d=crt4-3.3do size=0.1 movesize=0.1 move=physics physflags=0x4051 mass=500 surfdrag=6 airdrag=0 staticdrag=0 height=0.1

I took crate4_3, added some more params, chnged the size and movesize params, and presto! I reduced size and movesize so the crate would push all the way to the wall; before they were reduced, there would be a space between the crate and the wall and it wouldn't go any further -- Probably cylindrical collision like the player's. So make sure size and movesize are the distance from the wall to the center of the crate when the crate is against the wall. Same with the height, except that's the distance from the floor.

darn, sniperwolf beat me. That's what I get for testing things :\ :rolleyes:
May the mass times acceleration be with you.

↑ Up to the top!