ホーム / モデリング / CGaudiBody / 関数 / Move
Move関数
定義
Move (Vector As CGaudiVector) As Boolean戻り値
| True | 成功 | |
| False | 失敗 |
引数
| Vector | 方向ベクトル |
解説
引数で指定したCGaudiVector(方向)移動します。実行例
Dim Femtet As New CFemtetDim Gaudi As CGaudi
Dim Body As CGaudiBody
Dim Point As New CGaudiPoint
Dim Vector As New CGaudiVector
'新規プロジェクト作成
If Femtet.OpenNewProject() = False Then
Femtet.ShowLastError
End If
'Femtet.Gaudiを変数Gaudiに代入して使いやすくする
Set Gaudi = Femtet.Gaudi
Point.X =0
Point.Y =0
Point.Z =0
Set Body =Gaudi.CreateBox(Point,3,5,5)
Vector.SetCoord 10, 0, 0
If Body.Move(Vector) = False Then
Femtet.ShowLastError
End If


