---
tags:
    - "Physics, 3D"
---

# Rigidbody Move Position

[Physics 3D](../index.md) / [Rigidbody](index.md) / **Rigidbody Move Position**

## Description

Executes the Move Position method on the Rigidbody component

## Parameters

| Name | Description |
| :--- | :---------- |
| Position |  |

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("Rigidbody Move Position")]
    [Category("Physics 3D/Rigidbody/Move Position")]
    [Description("Executes the Move Position method on the Rigidbody component")]
    
    [Image(typeof(IconPhysics), ColorTheme.Type.Lime)]
    [Keywords("Physics, 3D")]
    
    [Parameter("Position")]
    
    [Serializable]
    public class GenInstructionRigidbody_MovePosition_1 : Instruction
    {
        [SerializeField] private GetGameObject m_Rigidbody = new GetGameObject(
            new GenTypeGameObject_Rigidbody()
        );
        
        [SerializeField] private GetVector3 m_Position = new GetVector3();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Move Position");
            return $"{this.m_Rigidbody} {method} ({this.m_Position})";
        }
        
        protected override Awaitable Run(Args args)
        {
            Rigidbody component = this.m_Rigidbody.Get<Rigidbody>(args);
            if (component == null) return Done;
            
            component.MovePosition(
                (Vector3) this.m_Position.Get(args)
            );
            
            return Done;
        }
    }
}


```

