Page 1 of 1
Discussion: HOW do I control unit bouce?
Posted: 19 Nov 2011, 01:57
by smoth
When units "fall" out of transports or are tossed by impulse they bounce. I don't want this. How can I stop it from happening? does the engine support that?
Re: Discussion: HOW do I control unit bouce?
Posted: 19 Nov 2011, 02:44
by luckywaldo7
+1 to mostly inelastic collisions between ground and units.
Most of that energy should converted to work in unit damage and ground deformation anyway.
edit: I'm only geeking some physics, not suggesting that collisions must cause ground deformation, although the option to do that would be cool too.
Re: Discussion: HOW do I control unit bouce?
Posted: 20 Nov 2011, 11:33
by knorke
BA has a unit_air_release_manager.lua thing to controll units falling from destroyed transports.
gadget:UnitUnloaded also gets called for units whose transport died, so should be possible to check how high the unit is above ground and softly movectrl it downwards like a spacerock.
http://answers.springlobby.info/questio ... e-airborne
Though
UnitEnteredAir() & UnitLeftAir() never seem to trigger for me.
Re: Discussion: HOW do I control unit bouce?
Posted: 20 Nov 2011, 15:47
by PicassoCT
smoth has a point though.. borked physics are funny, but still borked.
http://www.youtube.com/watch?v=MKISmzmO9Mw
Still i luved to see the artillery send those zombies flying...