HierarchyEntity3D UpdateGlobalsFromParent Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering3D
Assembly: DeltaEngine.Rendering3D (in DeltaEngine.Rendering3D.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void UpdateGlobalsFromParent(
	HierarchyObject3D parent
)

Implements

HierarchyObject3D UpdateGlobalsFromParent(HierarchyObject3D)
Remarks

Tests: DeltaEngine.GameLogic.Tests.ProjectileTests
Examples

1 unit tests call DeltaEngine.Rendering3D.HierarchyEntity3D.UpdateGlobalsFromParent(DeltaEngine.Entities.HierarchyObject3D)
[Test, CloseAfterFirstFrame]
public void WithoutParentLocalEqualsGlobal()
{
    projectile.UpdateGlobalsFromParent(null);
    projectile.RelativeOrientation = Quaternion.Identity;
    Assert.AreEqual(Quaternion.Identity, projectile.Orientation);
    Assert.AreEqual(projectile.RelativePosition, projectile.Position);
}
See Also