GameEntities.WaterPlane.CreateVolumeBody C# (CSharp) Метод

CreateVolumeBody() статический приватный Метод

static private CreateVolumeBody ( ) : void
Результат void
        void CreateVolumeBody()
        {
            DestroyVolumeBody();

            if( !EntitySystemWorld.Instance.IsEditor() )
            {
                if( physicsHeight != 0 && Type.PhysicsDensity != 0 )
                {
                    volumeBody = PhysicsWorld.Instance.CreateBody();
                    volumeBody.UserData = this;
                    volumeBody.Static = true;
                    volumeBody.Position = Position - new Vec3( 0, 0, physicsHeight / 2 );

                    BoxShape shape = volumeBody.CreateBoxShape();

                    shape.Dimensions = new Vec3( Size.X, Size.Y, physicsHeight );
                    shape.ContactGroup = (int)ContactGroup.NoContact;

                    volumeBody.PushedToWorld = true;
                }
            }
        }