?? flocking.xml
字號:
</call> </call> </call> </call> </functionCall> <parameter name="from_position" id="FunctionArgument_8"> <position2DType/> </parameter> <parameter name="to_position" id="FunctionArgument_9"> <position2DType/> </parameter> <userType id="UserType_0"/> </userFunction> <userFunction name="transfer_vector2D_to_direction" id="UserFunction_6"> <functionCall> <call functionName="If Then Else"> <call functionName=">"> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_10"/> <composedAttribute composedTypeID="UserType_0" index="1"/> </call> <double value="0.0"/> </call> <call functionName="If Then Else"> <call functionName=">"> <call userFunctionID="UserFunction_7"> <parameterID id="FunctionArgument_10"/> </call> <double value="180.0"/> </call> <call functionName="-"> <double value="360.0"/> <call userFunctionID="UserFunction_7"> <parameterID id="FunctionArgument_10"/> </call> </call> <call userFunctionID="UserFunction_7"> <parameterID id="FunctionArgument_10"/> </call> </call> <call functionName="If Then Else"> <call functionName="<="> <call userFunctionID="UserFunction_7"> <parameterID id="FunctionArgument_10"/> </call> <double value="180.0"/> </call> <call functionName="-"> <double value="360.0"/> <call userFunctionID="UserFunction_7"> <parameterID id="FunctionArgument_10"/> </call> </call> <call userFunctionID="UserFunction_7"> <parameterID id="FunctionArgument_10"/> </call> </call> </call> </functionCall> <parameter name="input_vector" id="FunctionArgument_10"> <userType id="UserType_0"/> </parameter> <doubleType/> </userFunction> <userFunction name="angle_for_vector2D" id="UserFunction_7"> <functionCall> <call functionName="ACos"> <call functionName="/"> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_11"/> <composedAttribute composedTypeID="UserType_0" index="0"/> </call> <call functionName="Sqrt"> <call functionName="+"> <call functionName="Sq"> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_11"/> <composedAttribute composedTypeID="UserType_0" index="0"/> </call> </call> <call functionName="Sq"> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_11"/> <composedAttribute composedTypeID="UserType_0" index="1"/> </call> </call> </call> </call> </call> </call> </functionCall> <parameter name="input_vector" id="FunctionArgument_11"> <userType id="UserType_0"/> </parameter> <doubleType/> </userFunction> <userFunction name="sum_of_3_vectors2D" id="UserFunction_8"> <functionCall> <call functionName="CreateComposedTypeValue"> <userType id="UserType_0"/> <call functionName="+"> <call functionName="+"> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_12"/> <composedAttribute composedTypeID="UserType_0" index="0"/> </call> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_13"/> <composedAttribute composedTypeID="UserType_0" index="0"/> </call> </call> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_14"/> <composedAttribute composedTypeID="UserType_0" index="0"/> </call> </call> <call functionName="+"> <call functionName="+"> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_12"/> <composedAttribute composedTypeID="UserType_0" index="1"/> </call> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_13"/> <composedAttribute composedTypeID="UserType_0" index="1"/> </call> </call> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_14"/> <composedAttribute composedTypeID="UserType_0" index="1"/> </call> </call> </call> </functionCall> <parameter name="input_vector1" id="FunctionArgument_12"> <userType id="UserType_0"/> </parameter> <parameter name="input_vector2" id="FunctionArgument_13"> <userType id="UserType_0"/> </parameter> <parameter name="input_vector3" id="FunctionArgument_14"> <userType id="UserType_0"/> </parameter> <userType id="UserType_0"/> </userFunction> <userFunction name="sum_of_2_vectors2D" id="UserFunction_9"> <functionCall> <call functionName="CreateComposedTypeValue"> <userType id="UserType_0"/> <call functionName="+"> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_15"/> <composedAttribute composedTypeID="UserType_0" index="0"/> </call> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_16"/> <composedAttribute composedTypeID="UserType_0" index="0"/> </call> </call> <call functionName="+"> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_15"/> <composedAttribute composedTypeID="UserType_0" index="1"/> </call> <call functionName="GetComposedTypeValue"> <parameterID id="FunctionArgument_16"/> <composedAttribute composedTypeID="UserType_0" index="1"/> </call> </call> </call> </functionCall> <parameter name="input_vector1" id="FunctionArgument_15"> <userType id="UserType_0"/> </parameter> <parameter name="input_vector2" id="FunctionArgument_16"> <userType id="UserType_0"/> </parameter> <userType id="UserType_0"/> </userFunction> <agentClass name="boid" id="ActivityAgentClass_0"> <features> <buildin xmlns="">Standard Functions</buildin> <buildin xmlns="">Standard Object Functions</buildin> <spatialInfo speed="10.0" direction="0.0" radius="30.0" drawPriority="3.0" x="0.0" y="0.0"/> </features> <bodyClass> <bodyVariableClass id="BodyVariableClass_0"> <variableClass name="direction_as_vector2D" id="VariableClass_0" writeable="true"> <userType id="UserType_0"/> <defaultValue> <composed composedTypeID="UserType_0"/> </defaultValue> </variableClass> </bodyVariableClass> <bodyVariableClass id="BodyVariableClass_1"> <variableClass name="sight" id="VariableClass_1"> <doubleType/> <defaultValue> <double value="150.0"/> </defaultValue> </variableClass> </bodyVariableClass> <bodyVariableClass id="BodyVariableClass_2"> <variableClass name="too_close_threshold" id="VariableClass_2"> <doubleType/> <defaultValue> <double value="50.0"/> </defaultValue> </variableClass> </bodyVariableClass> <bodyVariableClass id="BodyVariableClass_3"> <variableClass name="center_of_too_close_boids" id="VariableClass_3" writeable="true"> <position2DType/> <defaultValue> <position2D x="0.0" y="0.0"/> </defaultValue> </variableClass> </bodyVariableClass> <bodyVariableClass id="BodyVariableClass_4"> <variableClass name="target_center_point_X" id="VariableClass_4" writeable="true"> <doubleType/> <defaultValue> <double value="0.0"/> </defaultValue> </variableClass> </bodyVariableClass> <bodyVariableClass id="BodyVariableClass_5"> <variableClass name="mean_flight_direction_of_close_boids" id="VariableClass_5" writeable="true"> <userType id="UserType_0"/> <defaultValue> <composed composedTypeID="UserType_0"/> </defaultValue> </variableClass> </bodyVariableClass> <bodyVariableClass id="BodyVariableClass_6"> <variableClass name="speed_for_alignment" id="VariableClass_6"> <doubleType/>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -