new SelfWeight(enabled, x, y, z)
Creates an instance of the SkyCiv SelfWeight class.
Parameters:
Name | Type | Description |
---|---|---|
enabled |
boolean |
If the self weight is applied to the model or not. |
x |
number |
Acceleration due to gravity in the x-axis, defined as a multiplier of the gravitational constant g. |
y |
number |
Acceleration due to gravity in the y-axis, defined as a multiplier of the gravitational constant g. |
z |
number |
Acceleration due to gravity in the z-axis, defined as a multiplier of the gravitational constant g. |
Methods
disable()
Disables self-weight
enable(x, y, z)
Enables self-weight with provided gravity multipliers.
Parameters:
Name | Type | Description |
---|---|---|
x |
number |
Acceleration due to gravity in the x-axis, defined as a multiplier of the gravitational constant g. |
y |
number |
Acceleration due to gravity in the y-axis, defined as a multiplier of the gravitational constant g. |
z |
number |
Acceleration due to gravity in the z-axis, defined as a multiplier of the gravitational constant g. |