Parachute effect

Can someone help me with making a object “float” to the ground, like a parachute.

I’m not sure how to make an retard an object ie. a parachute, without affecting other objects. ie. If I reduced the gravity it would make the object drop slower, but it would also affect other objects.

I’m trying to drop a crate from a plane object and have it parachute to the ground. [import]uid: 63413 topic_id: 11212 reply_id: 311212[/import]

I would just fake it. Don’t make it a dynamic object until it hits the ground. Drop it at a somewhat random speed, create some fake wind, etc. And by fake it I mean just use transition.to several times to take it to some slightly random location.

For example. You drop it in the center of the screen. Divide that up into 4 transitions. From the start to the 1/4 position get a random x from startX-10 to startX+10. Then do this again 4 times until you hit the ground.

Once you hit do “addBody” or set the bodyType = “dynamic”

You can’t set gravity to be different and not affect every object so in my opinion faking it is the only way to go. I did the same thing and it turned out pretty well.

-d [import]uid: 27681 topic_id: 11212 reply_id: 40666[/import]

You can use object.linearDamping on any physics body to make it move slowly [import]uid: 48521 topic_id: 11212 reply_id: 40974[/import]

You can just change the density (weight) of your object. When it’s airborne, give it a light density, when grounded, give it a bigger density. [import]uid: 25327 topic_id: 11212 reply_id: 41015[/import]

Density or for that matter mass of object has no effect on how fast the object falls.
http://en.wikipedia.org/wiki/Galileo’s_Leaning_Tower_of_Pisa_experiment

linearDamping is the best way to go… (Tested by couple of other devs here who asked exact same question on forums before) [import]uid: 48521 topic_id: 11212 reply_id: 41017[/import]

You’re right! My bad :slight_smile: [import]uid: 25327 topic_id: 11212 reply_id: 41020[/import]

I tried linearDamping but it didn’t seem to have any effect [import]uid: 63413 topic_id: 11212 reply_id: 41021[/import]

what value of linearDamping did you use? [import]uid: 48521 topic_id: 11212 reply_id: 41023[/import]

I tried a few up to 500 [import]uid: 63413 topic_id: 11212 reply_id: 41025[/import]

can you post your code, so that we can help? [import]uid: 48521 topic_id: 11212 reply_id: 41121[/import]

Use a runtime listener to apply an upwards linear force on the object. [import]uid: 10903 topic_id: 11212 reply_id: 41318[/import]

set the object.lineardamping after you set the physics.addbody

if you set the lineardamping before physics.addbody it wont work. [import]uid: 7427 topic_id: 11212 reply_id: 41330[/import]

I tried adding lineardamping after the addBody but still doesn’t retard the drop.

I initial create the object as static, and when I want to drop the object, I change the type to dynamic.

But its falling too fast. [import]uid: 63413 topic_id: 11212 reply_id: 41369[/import]

this is the sample code that i take from Bunny Catapult from code exchcange

[code]
allBullets[#allBullets + 1] = display.newImage(bun_bullet.name … “.png”);
local bullet = allBullets[#allBullets]
– Place bullet
bullet.x = 170; bullet.y = _H + 20;
– Set up physical properties
physics.addBody(bullet, “kinematic”, {density=bun_bullet.density, friction=bun_bullet.friction, bounce=bun_bullet.bounce, radius=bun_bullet.size});

bullet.linearDamping = 0.3;
bullet.angularDamping = 0.8;
bullet.isBullet = true;
bullet.isSensor = true;
[/code] [import]uid: 7427 topic_id: 11212 reply_id: 41371[/import]