Files
sbox-public/engine/Sandbox.Engine/Scene/GameObject/GameObject.LocalTransform.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

46 lines
1.0 KiB
C#

namespace Sandbox;
public partial class GameObject
{
/// <summary>
/// The local transform of the game object.
/// </summary>
[ActionGraphInclude, Group( "Transform/Local" )]
public Transform LocalTransform
{
get => _gameTransform.Local;
set => _gameTransform.Local = value;
}
/// <summary>
/// The local position of the game object.
/// </summary>
[ActionGraphInclude, Group( "Transform/Local" )]
public Vector3 LocalPosition
{
get => LocalTransform.Position;
set => LocalTransform = LocalTransform.WithPosition( value );
}
/// <summary>
/// The local rotation of the game object.
/// </summary>
[ActionGraphInclude, Group( "Transform/Local" )]
public Rotation LocalRotation
{
get => LocalTransform.Rotation;
set => LocalTransform = LocalTransform.WithRotation( value );
}
/// <summary>
/// The local scale of the game object.
/// </summary>
[ActionGraphInclude, Group( "Transform/Local" )]
public Vector3 LocalScale
{
get => LocalTransform.Scale;
set => LocalTransform = LocalTransform.WithScale( value );
}
}