예제 #1
0
        public static void SyncHitWall(bool isCollision, ulong currentstate
                                       , ulong areaid, Vector3 position, Quaternion rotation, Vector3 line_velocity, Vector3 angular_velocity)
        {
            HeroMoveUnit heroMoveUnit = new HeroMoveUnit();
            HitWall      hitWall      = new HitWall();

            hitWall.IsHitWall    = isCollision;
            heroMoveUnit.HitWall = hitWall;

            hm_stream?.Wright(heroMoveUnit, currentstate, areaid,
                              NetHelper.PxVec3ToVec3(position), NetHelper.PxQuatToVec4(rotation),
                              NetHelper.PxVec3ToVec3(line_velocity), NetHelper.PxVec3ToVec3(angular_velocity));
        }
예제 #2
0
 /// <summary>
 /// This method will help to invoke the HitWall event when the the ball will be hit
 /// in the wall
 /// </summary>
 private void HitWallOccured() => HitWall.Invoke(this, EventArgs.Empty);