I'm a doctor, not a mechanic
Difference between revisions of "UE2:GravityTrigger (UT2004)"
(Auto-generated page) |
|||
Line 5: | Line 5: | ||
| parent3 = Object | | parent3 = Object | ||
}} | }} | ||
− | + | ||
− | + | Changes gravity of ALL [[UE2:PhysicsVolume (UT2004)|PhysicsVolumes]] to the specified value when being triggered. JumpPads are adjusted to work properly with the new gravity. | |
− | Changes gravity ALL | + | |
==Properties== | ==Properties== | ||
Line 14: | Line 13: | ||
'''Type:''' [[float]] | '''Type:''' [[float]] | ||
− | + | The new acceleration along the Z-axis. This should be negative to simulate gravity. Too low (around 0) or too high values should be avoided, the engine doesn't like them. | |
+ | From the code it seems like the gravity of a Volume is only changed, when the new value higher than the old one is. | ||
'''Default value:''' -300.0 | '''Default value:''' -300.0 | ||
Line 20: | Line 20: | ||
====VolumeTag==== | ====VolumeTag==== | ||
'''Type:''' [[name]] | '''Type:''' [[name]] | ||
− | + | Change only Volumes with this Tag. Change all Volumes if this is blank. | |
− | + | ||
===Default values=== | ===Default values=== | ||
Line 38: | Line 37: | ||
'''Overrides:''' {{tl|Trigger|Actor|events}} | '''Overrides:''' {{tl|Trigger|Actor|events}} | ||
− | + | Iterates through all PhysicsVolumes (optional with the VolumeTag) and sets the new gravity if the old value is not higher than the new one. Then it forces the Volume to update in netplay. | |
+ | The Level's DefaultGravity is set to the one of the DefaultPhysicsVolume. | ||
+ | At last are the JumpPads adjusted. |
Revision as of 14:18, 5 April 2010
- Package:
- UnrealGame
Changes gravity of ALL PhysicsVolumes to the specified value when being triggered. JumpPads are adjusted to work properly with the new gravity.
Properties
Property group 'GravityTrigger'
GravityZ
Type: float
The new acceleration along the Z-axis. This should be negative to simulate gravity. Too low (around 0) or too high values should be avoided, the engine doesn't like them. From the code it seems like the gravity of a Volume is only changed, when the new value higher than the old one is.
Default value: -300.0
VolumeTag
Type: name Change only Volumes with this Tag. Change all Volumes if this is blank.
Default values
Property | Value |
---|---|
bCollideActors | False |
Events
Trigger
Overrides: Actor.Trigger
Iterates through all PhysicsVolumes (optional with the VolumeTag) and sets the new gravity if the old value is not higher than the new one. Then it forces the Volume to update in netplay. The Level's DefaultGravity is set to the one of the DefaultPhysicsVolume. At last are the JumpPads adjusted.