protected virtual void CreateBaseComponent() { _physicalBase = CreatePhysicalBase(); //目前只引发移动事件 _moveComponent = new MoveComponentBase(_physicalBase); //目前只有最大速度 _invariantAttributeComponent = new InvariantAttributeComponentBase(); }
public virtual void Dispose() { level = null; _physicalBase.Dispose(); _physicalBase = null; _moveComponent.Dispose(); _moveComponent = null; _invariantAttributeComponent = null; }
public PhysicalBase(PhysicalBase clone) { this.envirinfo = clone.envirinfo; // 朱颖 clone body //this.m_body = Factory.CreateCloneBody(clone.m_body); contactActors = new List <UserData>(); //Log.Trace("物理引擎复制角度值:"+m_body.Angle); }