예제 #1
0
 protected virtual void CreateBaseComponent()
 {
     _physicalBase = CreatePhysicalBase();
     //目前只引发移动事件
     _moveComponent = new MoveComponentBase(_physicalBase);
     //目前只有最大速度
     _invariantAttributeComponent = new InvariantAttributeComponentBase();
 }
예제 #2
0
 public virtual void Dispose()
 {
     level = null;
     _physicalBase.Dispose();
     _physicalBase = null;
     _moveComponent.Dispose();
     _moveComponent = null;
     _invariantAttributeComponent = null;
 }
예제 #3
0
        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);
        }