public override void OnDestroy() { base.OnDestroy(); interactBody.CollisionSkin = null; interactBody.DisableBody(); interactBody.Node = null; this.scene.GetPhysicsEngine().RemoveBody(interactBody); interactBody = null; interactNode = null; }
public Chest(string chestName, string modelName) : base(modelName) { this.interactBody = new InteractBody(new ChestNode(chestName)); }
public InteractObject(InteractNode node, string modelName) : base(modelName) { this.interactBody = new InteractBody(node); this.interactNode = node; }