PhysicalEntity3D Dispose Method Delta Engine Documentation

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

public override void Dispose()

Implements

IDisposable Dispose 
Remarks

Tests: DeltaEngine.GameLogic.Tests.ProjectileTests
Examples

1 unit tests call DeltaEngine.Physics3D.PhysicalEntity3D.Dispose
[Test, CloseAfterFirstFrame]
public void DisposalDisposesMissile()
{
    var missile = new PhysicalEntity3D();
    var grenade = new Projectile(Vector3D.Zero, Vector3D.Zero, missile, 1, 0.2f);
    grenade.IsActive = false;
    Assert.IsFalse(missile.IsActive);
}
See Also