NiPSysGravityFieldModifier

From GECK
Jump to: navigation, search

NiPSysGravityField is a modifier for particle systems that simulates a localized gravity system by adjusting particle velocity to mimic directional gravity around a Field Object.

An example of a NiPSysGravityFieldModifier.

Its fields are:

  • Name: The name of the modifier.
  • Order: 4000 seems to be the only one used, it instructs the particle system to update forces from this modifier.
  • Target: The particle system you wish to affect.
  • Active: If the modifier is enabled. You can animate this value by specifying the name of the modifier as the Controller ID in a NiControllerSequence and using a NiPSysModifierActiveCtlr as a controller with a NiBoolTimelineInterpolator as the interpolator.
  • Field Object: A NiNode to center the gravity field around.
  • Magnitude: Determines how fast particles will accelerate in the gravity field.
  • Attenuation: Determines how much the gravity effect diminishes over distance from the center when combined with Max Distance.
  • Use Max Distance: If no, then this effect has infinite range in its particle system.
  • Max Distance: The maximum distance from the center before the gravity effect ceases.
  • Direction: Determines the direction of the gravity effect in the Field Object's local space.