csharp
public struct LocalTransformWhere 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 PositionPosition relative to the parent, or to the world for a root.
public Quaternion RotationRotation relative to the parent.
public Vector3 ScaleScale relative to the parent.
public static LocalTransform IdentityThe 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 (204, showing 40)
- AiVillageGameAiVillage
- ArenaThirdPersonShooter
- CharacterAnimationThirdPersonShooter
- IntruderSystemAiVillage
- OrbitSystemEcsStressTest
- PbrShowcaseGamePbrShowcase
- PlayerRigThirdPersonShooter
- ProgramEcsStressTest
- RespawnWhenBelowThirdPersonShooter
- SunOrbitThirdPersonShooter
- ThirdPersonShooterGameThirdPersonShooter
- VillageAiVillage
- AgentTargetVixen.Ai.Nodes
- AiFocusVixen.Ai.Nodes
- AiGameplayDebuggerVixen.Ai.Diagnostics
- AnimationSystemVixen.Animation
- BehaviorTestsVixen.Engine.Tests
- BindingTestsVixen.Ai.Perception.Tests
- BuoyancyDebugDrawTestsVixen.Water.Physics.Tests
- BuoyancyDebugSystemTestsVixen.Water.Physics.Tests
- BuoyancySystemTestsVixen.Water.Physics.Tests
- CameraDirectorSystemVixen.Engine
- CameraDirectorTestsVixen.Engine.Tests
- CameraExtractionTestsVixen.Rendering.Tests
- CentreSensorVixen.Ai.Nodes
- CharacterAllocationTestsVixen.Physics.Tests
- CharacterMovementSystemVixen.Physics
- CharacterSceneTestsVixen.Physics.Tests
- DistanceSensorVixen.Ai.Nodes
- DoesPathExistDecoratorVixen.Ai.Nodes
- EcsIntegrationTestsVixen.Animation.Tests
- EntityGeneratorVixen.Ai.Nodes
- FleetVixen.Ai.Perception.Tests
- FocusTestsVixen.Ai.Nodes.Tests
- FoliageBlockerTestsVixen.Rendering.Terrain.Tests
- FoliageBlockersVixen.Rendering.Terrain
- HierarchyVixen.Engine
- HierarchyTestsVixen.Engine.Tests
- LagCompensationSystemTestsVixen.Net.Physics.Tests
- LevelVixen.Ai.Nodes.Tests