Discussion: HOW do I control unit bouce?
Moderator: Moderators
Discussion: HOW do I control unit bouce?
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?
-
- Posts: 1398
- Joined: 17 Sep 2008, 04:36
Re: Discussion: HOW do I control unit bouce?
+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.
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?
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.
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?
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...
http://www.youtube.com/watch?v=MKISmzmO9Mw
Still i luved to see the artillery send those zombies flying...