v1.0
Creates a particle force object.
oReturn = CreateForce( [Name], [InputObjs] ); |
Returns the force object.
Parameter | Type | Description |
---|---|---|
Name | String |
Name of force object. Default Value: "Gravity" |
InputObjs | String |
List of objects. Default Value: Selected objects |
/* 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(); |