Vixen
02b45cc4
csharp
public struct LocalTransform

Where an entity is, relative to its parent. The authored value.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Position, rotation and scale rather than a matrix, because this is what a human and an inspector edit, and because interpolating a matrix is not a thing anyone means to do. The matrix is derived — see WorldTransform.

Fields and properties (4)

  • public Vector3 Position

    Position relative to the parent, or to the world for a root.

  • public Quaternion Rotation

    Rotation relative to the parent.

  • public Vector3 Scale

    Scale relative to the parent.

  • public static LocalTransform Identity

    The transform that changes nothing: origin, identity rotation, unit scale.

Methods (2)

  • public static LocalTransform At(Vector3 position)

    A transform at a position, unrotated and unscaled.

  • public readonly Matrix4x4 ToMatrix()

    This transform as a matrix, without reference to any parent.

Used by (128, showing 40)

  • ArenaThirdPersonShooter
  • CharacterAnimationThirdPersonShooter
  • OrbitSystemEcsStressTest
  • PlayerRigThirdPersonShooter
  • ProgramEcsStressTest
  • RespawnWhenBelowThirdPersonShooter
  • SunOrbitThirdPersonShooter
  • ThirdPersonShooterGameThirdPersonShooter
  • AnimationSystemVixen.Animation
  • BehaviorTestsVixen.Engine.Tests
  • CameraDirectorSystemVixen.Engine
  • CameraDirectorTestsVixen.Engine.Tests
  • CameraExtractionTestsVixen.Rendering.Tests
  • CharacterAllocationTestsVixen.Physics.Tests
  • CharacterMovementSystemVixen.Physics
  • CharacterSceneTestsVixen.Physics.Tests
  • EcsIntegrationTestsVixen.Animation.Tests
  • FoliageBlockerTestsVixen.Rendering.Terrain.Tests
  • FoliageBlockersVixen.Rendering.Terrain
  • HierarchyVixen.Engine
  • HierarchyTestsVixen.Engine.Tests
  • LocalPlayerSystemTestsVixen.Net.Engine.Tests
  • LocalTransformColumnVixen.Engine
  • MachineVixen.Net.Physics.Tests
  • NavigationSystemVixen.Navigation
  • NavigationSystemTestsVixen.Navigation.Tests
  • NetworkRigidBodyCorrectionSystemVixen.Net.Physics
  • NetworkRigidBodyTestsVixen.Net.Physics.Tests
  • NetworkSpawnTestsVixen.Net.Engine.Tests
  • NetworkSpawnerVixen.Net.Engine
  • NetworkTransformApplySystemVixen.Net.Engine
  • NetworkTransformBridgeTestsVixen.Net.Engine.Tests
  • NetworkTransformCaptureSystemVixen.Net.Engine
  • PhysicsInterpolationSystemVixen.Physics
  • PhysicsSceneVixen.Physics
  • PhysicsSceneTestsVixen.Physics.Tests
  • PhysicsSyncSystemVixen.Physics
  • PhysicsWritebackSystemVixen.Physics
  • PlayerAllocationTestsVixen.Engine.Tests
  • PlayerCameraTestsVixen.Engine.Tests