/// シーンの初期化 public bool Init(DemoGame.SceneManager sceneMgr) { useSceneMgr = sceneMgr; calCollGrav = new ActorUnitCollGravity(); calCollGrav.Init(); moveCollMgr = new GameActorCollManager(); moveCollMgr.Init(); shapeMove = new ShapeSphere(); shapeMove.Init(1); shapeMove.Set(0, StaticDataList.getVectorZero(), 0.001f); renderSph = new DemoGame.RenderGeometry(); renderSph.MakeSphere(); /// trgObj = null; /// 移動する自身のOBJを登録 moveCollMgr.SetMoveShape(shapeMove); trgObjMoveSpd = 1.0f; setPlaceTypeParam(trgObjType); nowTaskId = debugMenuTaskId.SelectObj; changeTask(debugMenuTaskId.SelectObj); return(true); }
/// 初期化 public override bool DoInit() { shapeMove = null; shapeMove = new ShapeSphere(); shapeMove.Init(1); shapeMove.Set(0, StaticDataList.getVectorZero(), 0.4f); shapeColl = new ShapeCapsule(); shapeColl.Init(1); shapeColl.Set(0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TitanSize); shapeCollforDis = new ShapeCapsule(); shapeCollforDis.Init(1); shapeCollforDis.Set(0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TouchSize); appearCount = 30; glowCounter = 0; scale = (int)Data.SetupValue.WallScale / 100.0f; farFlag = false; distance = Common.VectorUtil.DistanceXZ(pos1, pos2); angle = FMath.Atan((pos1.X - pos2.X) / (pos1.Z - pos2.Z)) + FMath.PI / 2; return(true); }
/// 初期化 public override bool DoInit() { shapeMove = null; shapeMove = new ShapeSphere(); shapeMove.Init(1); shapeMove.Set(0, StaticDataList.getVectorZero(), 0.3f); shapeColl = new ShapeCapsule(); shapeColl.Init(1); shapeColl.Set(0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TitanSize); shapeCollforDis = new ShapeCapsule(); shapeCollforDis.Init(1); shapeCollforDis.Set(0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TouchSize); scale = (int)Data.SetupValue.CharScale / 100.0f; moveAngle = false; preDeadFlag = false; // useMdlHdl = new Common.ModelHandle(); // useMdlHdl.Init(); return(true); }
/// 継承メソッド ///--------------------------------------------------------------------------- /// 初期化 public override bool DoInit() { shapeMove = null; shapeMove = new ShapeSphere(); shapeMove.Init(1); shapeMove.Set(0, StaticDataList.getVectorZero(), objWidth); // titanModel = new BasicModel("/Application/res/data/3D/char/titan.mdx", 0); program = new BasicProgram(); return(true); }
/// 継承メソッド ///--------------------------------------------------------------------------- /// 初期化 public override bool DoInit() { shapeMove = null; shapeMove = new ShapeSphere(); shapeMove.Init(1); shapeMove.Set( 0, new Vector3(0.0f, 0.0f, 0.0f), objWidth ); useMdlHdl = new Common.ModelHandle(); useMdlHdl.Init(); baseScale = new Vector3( 1.0f, 1.0f, 1.0f ); return true; }
/// 継承メソッド ///--------------------------------------------------------------------------- /// 初期化 public override bool DoInit() { shapeMove = null; shapeMove = new ShapeSphere(); shapeMove.Init(1); shapeMove.Set(0, new Vector3(0.0f, 0.0f, 0.0f), objWidth); useMdlHdl = new Common.ModelHandle(); useMdlHdl.Init(); baseScale = new Vector3(1.0f, 1.0f, 1.0f); return(true); }
/// 継承メソッド ///--------------------------------------------------------------------------- /// 初期化 public override bool DoInit() { shapeMove = null; shapeMove = new ShapeSphere(); shapeMove.Init(1); shapeMove.Set(0, StaticDataList.getVectorZero(), 0.4f); shapeColl = new ShapeCapsule(); shapeColl.Init(1); shapeColl.Set(0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TitanSize); shapeCollforDis = new ShapeCapsule(); shapeCollforDis.Init(1); shapeCollforDis.Set(0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TouchSize); return(true); }
/// public メソッド ///-------------------------------------------------------------------------- - /// 初期化 public bool Init() { boundingShape = new ShapeSphere(); boundingShape.Init(1); boundingShape.Set(0, new Vector3(0.0f, 0.0f, 0.0f), 1.0f); deadFlag = false; changeFlag = false; glowNumber = 0; glowCounter = 0; appearCount = (int)Data.SetupValue.AppearAndLeaveTime; firstFlag = true; eatFlag = false; glowFinish = false; farFlag = false; rotation.Z = 0.0f; return(DoInit()); }
/// 継承メソッド ///--------------------------------------------------------------------------- /// 初期化 public override bool DoInit() { shapeMove = null; shapeMove = new ShapeSphere(); shapeMove.Init(1); shapeMove.Set( 0, StaticDataList.getVectorZero(), 0.4f ); shapeColl = new ShapeCapsule(); shapeColl.Init(1); shapeColl.Set( 0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TitanSize ); shapeCollforDis = new ShapeCapsule(); shapeCollforDis.Init(1); shapeCollforDis.Set( 0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TouchSize ); farFlag = false; return true; }
/// 初期化 public override bool DoInit() { shapeMove = null; shapeMove = new ShapeSphere(); shapeMove.Init(1); shapeMove.Set(0, StaticDataList.getVectorZero(), 0.4f); shapeColl = new ShapeCapsule(); shapeColl.Init(1); shapeColl.Set(0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TitanSize); shapeCollforDis = new ShapeCapsule(); shapeCollforDis.Init(1); shapeCollforDis.Set(0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TouchSize); farFlag = false; countForHouse = (int)Data.SetupValue.NewHouseAppearTime; return(true); }
/// 初期化 public override bool DoInit() { shapeMove = null; shapeMove = new ShapeSphere(); shapeMove.Init(1); shapeMove.Set(0, StaticDataList.getVectorZero(), 0.4f); shapeColl = new ShapeCapsule(); shapeColl.Init(1); shapeColl.Set(0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TitanSize); shapeCollforDis = new ShapeCapsule(); shapeCollforDis.Init(1); shapeCollforDis.Set(0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TouchSize); glowCounter = 0; scale = (int)Data.SetupValue.TowerScale / 100.0f; farFlag = false; return(true); }
/// public メソッド ///-------------------------------------------------------------------------- - /// 初期化 public bool Init() { boundingShape = new ShapeSphere(); boundingShape.Init( 1 ); boundingShape.Set( 0, new Vector3( 0.0f, 0.0f, 0.0f ), 1.0f ); deadFlag = false; changeFlag = false; glowNumber = 0; glowCounter = 0; appearCount = (int)Data.SetupValue.AppearAndLeaveTime; firstFlag = true; eatFlag = false; glowFinish = false; farFlag = false; rotation.Z = 0.0f; return( DoInit() ); }
/// 初期化 public override bool DoInit() { shapeMove = null; shapeMove = new ShapeSphere(); shapeMove.Init(1); shapeMove.Set( 0, StaticDataList.getVectorZero(), 0.4f ); shapeColl = new ShapeCapsule(); shapeColl.Init(1); shapeColl.Set( 0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TitanSize ); shapeCollforDis = new ShapeCapsule(); shapeCollforDis.Init(1); shapeCollforDis.Set( 0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TouchSize ); scale = (int)Data.SetupValue.WallScale /100.0f; farFlag = false; distance = Common.VectorUtil.DistanceXZ( pos1 ,pos2 ); angle = FMath.Atan((pos1.X-pos2.X)/(pos1.Z-pos2.Z)) +FMath.PI/2; return true; }
/// シーンの初期化 public bool Init( DemoGame.SceneManager sceneMgr ) { useSceneMgr = sceneMgr; calCollGrav = new ActorUnitCollGravity(); calCollGrav.Init(); moveCollMgr = new GameActorCollManager(); moveCollMgr.Init(); shapeMove = new ShapeSphere(); shapeMove.Init(1); shapeMove.Set( 0, StaticDataList.getVectorZero(), 0.001f ); renderSph = new DemoGame.RenderGeometry(); renderSph.MakeSphere(); /// trgObj = null; /// 移動する自身のOBJを登録 moveCollMgr.SetMoveShape( shapeMove ); trgObjMoveSpd = 1.0f; setPlaceTypeParam( trgObjType ); nowTaskId = debugMenuTaskId.SelectObj; changeTask( debugMenuTaskId.SelectObj ); return true; }
/// 初期化 public override bool DoInit() { shapeMove = null; shapeMove = new ShapeSphere(); shapeMove.Init(1); shapeMove.Set( 0, StaticDataList.getVectorZero(), 0.3f ); shapeColl = new ShapeCapsule(); shapeColl.Init(1); shapeColl.Set( 0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TitanSize ); shapeCollforDis = new ShapeCapsule(); shapeCollforDis.Init(1); shapeCollforDis.Set( 0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TouchSize ); scale = (int)Data.SetupValue.CharScale/100.0f; moveAngle = false; // useMdlHdl = new Common.ModelHandle(); // useMdlHdl.Init(); return true; }
/// 初期化 public override bool DoInit() { shapeMove = null; shapeMove = new ShapeSphere(); shapeMove.Init(1); shapeMove.Set( 0, StaticDataList.getVectorZero(), 0.4f ); shapeColl = new ShapeCapsule(); shapeColl.Init(1); shapeColl.Set( 0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TitanSize ); shapeCollforDis = new ShapeCapsule(); shapeCollforDis.Init(1); shapeCollforDis.Set( 0, StaticDataList.getVectorZero(), new Vector3(0.0f, 2.0f, 0.0f), (float)Data.SetupValue.TouchSize ); glowCounter = 0; scale = (int)Data.SetupValue.TowerScale /100.0f; return true; }
/// 継承メソッド ///--------------------------------------------------------------------------- /// 初期化 public override bool DoInit() { shapeMove = null; shapeMove = new ShapeSphere(); shapeMove.Init(1); shapeMove.Set( 0, StaticDataList.getVectorZero(), objWidth ); // titanModel = new BasicModel("/Application/res/data/3D/char/titan.mdx", 0); program = new BasicProgram() ; return true; }