CreateForce

Introduced

1.0

Description

Creates a particle force object.

Scripting Syntax

    CreateForce( [Name], [InputObjs] )

Parameters

Parameter | Type | Description
Name | String | Name of force object. Default Value: "Gravity"
InputObjs | String | List of objects. Default Value: Selected objects

Return Value

Returns the force object.

Examples

JScript Example

    /*
       This example demonstrates how to add a force to a simulation
    */
    NewScene( null, false );
    CreatePrim( "Cone", "MeshSurface" );
    CreateActiveRigidBody( "cone" );
    CreatePrim( "Cylinder", "MeshSurface" );
    Translate( null, -6.41985129361203, 0, 0, siRelative, siView, siObj, siXYZ,
       null, null, null, null, null, null, null, null, null, 0 );
    CreateEnvironment();
    CreateActiveRigidBody( "cylinder" );
    CreateForce( "Gravity" );
    PlayforwardsFromStart();

See Also

CreateParticleCloud | ApplyParticleShader | AddParticleEmitter | AddParticleObstacle
AddParticleForce |  |  |

Autodesk Softimage v7.5