MAXScript Language Reference > 3ds Max Objects > Node : MAXWrapper > Node Subclasses > SpacewarpObject : Node > Spacewarp - Forces >

# Gravity : SpacewarpObject

    gravity - superclass: SpacewarpObject; super-superclass:node - classID: #(938556, 0)

Value > MAXWrapper > Node > SpacewarpObject > Forces > Gravity

Constructor

    gravity...

Properties

    <Gravity>.strength Float default: 1.0 -- animatable

Increasing Strength increases the effect of gravity; that is, how objects move in relation to the Gravity icon's direction arrow.

Strength less than 0.0 creates negative gravity, which repels particles moving in the same direction and attracts particles moving in the opposite direction.

When Strength is set to 0.0, the Gravity space warp has no effect.

    <Gravity>.decay Float default: 0.0 -- animatable

When Decay is set to 0.0, the Gravity space warp has the same strength throughout world space. Increasing the Decay value causes gravity strength to diminish as distance increases from the position of the gravity warp object.

    <Gravity>.gravitytype Integer default: 0

Set the type of gravity effect:

0- Planar

1- Spherical

    <Gravity>.showRange Boolean default: false

When on, and when the decay value is greater than 0.0, icons in the viewports indicate the range at which the force of gravity is half the maximum value.

    <Gravity>.iconsize Float default: 10.0 -- animatable

Size of the Gravity warp object icon, in active units.

You set the initial size when you drag to create the Gravity object.

This value does not change the gravity effect.

    <Gravity>.hoopson Boolean default: true

When on, and when the decay value is greater than 0.0, icons in the viewports indicate the range at which the force of gravity is half the maximum value.

For the Planar option, the indicators are two planes; for use the Spherical option, the indicator is a double-hooped sphere.

Associated Methods

    bindSpaceWarp <node> <gravity_node>

Associated Binding Modifier

    GravityBinding

This modifier is automatically created by the bindSpaceWarp() method, and is not otherwise creatable by MAXScript. There are no properties associated with this binding modifier.

#### See Also

- Node Common Properties, Operators, and Methods

- MAXWrapper Common Properties, Operators, and Methods

- Value Common Properties, Operators, and Methods