CreateForce
 
 
 

CreateForce

Introduced

v1.0

Description

Creates a particle force object.

Scripting Syntax

oReturn = CreateForce( [Name], [InputObjs] );

Return Value

Returns the force object.

Parameters

Parameter Type Description
Name String Name of force object.

Default Value: "Gravity"

InputObjs String List of objects.

Default Value: Selected objects

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