mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-02 11:28:19 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
46 lines
1.0 KiB
C#
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 );
|
|
}
|
|
}
|