Пример #1
0
 public InteractObject(InteractNode node, string modelName, bool useCollisionTransform)
     : base(modelName)
 {
     this.interactNode = node;
     this.interactTrigger = new InteractTrigger(this);
     this.useCollisionTransform = true;
 }
Пример #2
0
 public override void OnDestroy()
 {
     base.OnDestroy();
     interactBody.CollisionSkin = null;
     interactBody.DisableBody();
     interactBody.Node = null;
     this.scene.GetPhysicsEngine().RemoveBody(interactBody);
     interactBody = null;
     interactNode = null;
 }
Пример #3
0
 public override void OnDestroy()
 {
     base.OnDestroy();
     this.interactTrigger.OnDestroy();
     interactNode = null;
 }
Пример #4
0
 public InteractObject(InteractNode node, string modelName)
     : base(modelName)
 {
     this.interactNode = node;
     this.interactTrigger = new InteractTrigger(this);
 }
Пример #5
0
 public void SetInteractNode(InteractNode node)
 {
     this.interactNode = node;
 }
Пример #6
0
 public InteractObject(InteractNode node, string modelName)
     : base(modelName)
 {
     this.interactBody = new InteractBody(node);
     this.interactNode = node;
 }